Importing a Text File into command prompt

shilpa - Jun 8, 2009 at 12:16 PM
 shilpa - Jun 8, 2009 at 12:34 PM

I have a text file with the following contents

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,

2 responses

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

This can be done using this tip: 1443 vista copying the results of a dos command