Search : in
By :

Importing a Text File into command prompt

Last answer on Jun 8, 2009 5:34:51 pm BST shilpa, on Jun 8, 2009 5:16:20 pm BST 
 Report this message to moderators

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

Configuration: Windows XP
Firefox 3.0.10

Best answers for « Importing a Text File into command prompt » in :
[MySQL]Loading a text file into ue table Show [MySQL]Loading a text file into ue table To load a text file as follows: $ tail /home/user1/test.txt 'name1',1,9 'name2',2,3 'name3',3,54 'name4',4,2 'name5',5,9 In a table defined as follows: CREATE TABLE...
Writing in batch in text file Show Writing in batch in text file To write in a file text, you just have to use a redirect: echo text > output_file.txt To write in an existing file: echo " Write at the end of the file ">> output_file.txt
[Linux]Cutting a file into several parts Show[Linux]Cutting a file into several parts Linux is full of utility tools allowing you to manipulate files. There is a very handy tool to split a file into several parts (for example to carry data on low capacity media). The split...
Converting your PDF file into an Image ShowConverting your PDF file into an Image Universal Document Converter PDF2IMAGE PDF TO IMAGE CONVERTER You could have encountered difficulties to modify PDF docs in the past. Nowadays this is no more trouble as there are several PDF...
Prevent the automatic closing of the command prompt ShowPrevent the automatic closing of the command prompt Sometimes, often see the command prompt window closes when you want to see information such as your IP ... To address this problem, just launch the command prompt using cmd /K...
Download Join (Merge) Text Files Software ShowDescription The application is designed by Sobolsoft. Simple and easy to use, the application has been awarded from various places. Join Text Files a tool that enables you to merge several files. It allows you to merge multiple text files into a...
Download OraLoader ShowOraLoader is a database application conceived for Oracle bases. The application allows to import text file data then to export them into other formats such as: TXT, CVS, HTML, XML. You can use this tool to transfer data from one table to another,...
Cmd - cmd.exe Showcmd - cmd.exe cmd.exe (cmd signifiant Windows Command Prompt) is a Windows NT/2000/XP generic process which opens a text-mode console for running programs using a command line. The process cmd is not in any way a virus, a worm, a Trojan horse,...
UNIX system - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence its name "shell". The shell therefore acts as an intermediary between the operating system and the user using command lines...
Operating Systems - MS-DOS - Commands ShowCommand Description dir lists the contents of a folder cd changes folder cd .. parent folder md or mkdir creates a new folder deltree deletes a folder and all sub-folders copy, xcopy copies...

1

riskhearted, on Jun 8, 2009 5:22:29 pm BST
Reply to riskhearted

2

 shilpa, on Jun 8, 2009 5:34:51 pm BST
  • +1

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

Reply to shilpa