Importing a Text File into command prompt

[Closed]
Report
-
 shilpa -
Hello,

I have a text file with the following contents

Trial.txt
C:\trial\trial for me\trial for us
C:\folder1\folder for us\


I want to import this file into command prompt to be able to execute the 'mkdir' command on it. I tried
mkdir < trial.txt but doesn't work.

I would appreciate it if anyone can throw some light on this.

Thanks in advance,
Shilpa

2 replies

Hi there,
thanks for the quick reply.

The link you provided tells you how you can 'export' contents of a dos command. I'm actually trying to do just the opposite. I want to import the contents of the text file into the dos command promopt to be able to use the mkdir command to create the folders as specified in the text file.

Thanks again,
Shilpa
3
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2821 users have said thank you to us this month

Posts
8
Registration date
Friday March 20, 2009
Status
Member
Last seen
June 15, 2009

Hye,

This can be done using this tip: http://ccm.net/faq/sujet 1443 vista copying the results of a dos command