Importing a Text File into command prompt

Closed
shilpa - Jun 8, 2009 at 12:16 PM
 shilpa - Jun 8, 2009 at 12:34 PM
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
riskhearted
Posts
8
Registration date
Friday March 20, 2009
Status
Member
Last seen
June 15, 2009

Jun 8, 2009 at 12:22 PM
Hye,

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