Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch file input
Name: djas Date: September 15, 2004 at 08:36:23 Pacific OS: Windows XP/Longhorn GUI CPU/Ram: n/a
Comment:
Is it possible to input a command from a text file onto the command line in a batch file thanx
Name: Mechanix2Go Date: September 15, 2004 at 08:49:37 Pacific
Reply:
Can you claify plase?
M2
Mechanix2Go@Golden-Triangle.com
0
Response Number 2
Name: djas Date: September 15, 2004 at 09:00:58 Pacific
Reply:
say i had this in a text file:
"del 1.txt"
Is it possible to inport this into a batch file, not just being type on screen but being used as a command. I thought maybe somthing like this:
"%input% < 1.txt"
thanx
djas
0
Response Number 3
Name: wizard-fred Date: September 15, 2004 at 09:39:38 Pacific
Reply:
text file a.bat contains "del 1.txt"
b.bat contains "call a" and other commands
b will execute a
0
Response Number 4
Name: djas Date: September 15, 2004 at 09:52:21 Pacific
Reply:
i dont think you understood what i meant i want to have .txt file with a batch file command in it on its own. then i want a .bat file to read the .txt file and input the command onto the command line
djas
0
Response Number 5
Name: Mechanix2Go Date: September 15, 2004 at 10:03:23 Pacific
Reply:
If it has this:
"del 1.txt"
I dunno. But if it has this:
del 1.txt
then just call it a BAT and it'll work.
M2
Mechanix2Go@Golden-Triangle.com
0
Response Number 6
Name: wizard-fred Date: September 15, 2004 at 10:14:22 Pacific
Reply:
The quotes was to show the contents.
A bat file is a text file.
0
Response Number 7
Name: djas Date: September 16, 2004 at 10:35:09 Pacific
Reply:
u guys just arent getting what im trying to say,
i want to import a command from a .txt file and use it in a batch file
djas
0
Response Number 8
Name: dtech10 Date: September 18, 2004 at 15:33:07 Pacific
Reply:
Hi Since you're using XP, is this what you want.
echo dir > test.txt
@echo off set /p Com=<test.txt %Com%
0
Response Number 9
Name: djas Date: September 19, 2004 at 10:52:18 Pacific
Reply:
yes brilliant thanx thats exactly what it wanted works thanx again and everyone that tried to help thanx
Summary: Hello, I want to run a batch file every couple of hours, that will take the input from a text file and put it into a field in a command I want to run. This is the command I want to run in the batch fi...
Summary: I have seen many posts and they helped me alot, still I am facing a basic issue. I am working on Win XP. I need a to create a batch file which takes inputs from a txt file, say var1_address = D:\abc\s...
Summary: In a batch file, i want the user to input a directory to save a file. however, i want an option to input '#' and the directory of the batch file will be selected (using %~dp0). i don't know how to ma...