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 wont work
Name: littlejon Date: June 21, 2004 at 16:27:05 Pacific OS: dos6.22 CPU/Ram: 100mhz 30mb
Comment:
Simplistic example of my problem. Say Im in directory of FRUIT
cd bnana pause count.exe :end
Ok, for some reason it wants to put "cd bnana pause count.exe" all together then gives me an error about too many parameters. If I do this manually and type cd bnana <return> pause <return> count.exe <return> then it works correctly. Its been long time since I messed with batch files so maybe I'm forgetting something simple?
Name: jboy Date: June 21, 2004 at 19:16:29 Pacific
Reply:
All I can tell you is it should work. What editor are you creating the file with?
You might try
command /y /c mybatch.bat
to step through the bat (command.com has to be available on the path)
We have nothing against ideas. We're against people spreading them. - General Augusto Pinochet of Chile
0
Response Number 2
Name: Mechanix2Go Date: June 21, 2004 at 23:27:28 Pacific
Reply:
Hi,
I think jboy is right on. You probably have some mystery code put in by an editor which is NOT pure text.
BTW. what's 'count?' [Been a long time since I did 6.22]
M2
0
Response Number 3
Name: littlejon Date: June 22, 2004 at 06:34:50 Pacific
Reply:
Thanks, yep it was the text editor I was using. Had written it on another computer. When I went back using 6.22 built in text editor, things were indeed bunched up on one line. I just re-spaced them and voila, everything worked.
By way my given batch file above was just simplistic example of problem, had no meaning otherwise.
0
Response Number 4
Name: jboy Date: June 22, 2004 at 08:21:37 Pacific
Reply:
Glad you got it straightened out.
We have nothing against ideas. We're against people spreading them. - General Augusto Pinochet of Chile
Summary: Since Win2k doesn't actually have DOS but just an emulator, it doesn't work the same. Many commands work different in the Win2k emulator. An example would be the "cls" command. In DOS, it clears the s...
Summary: hi: I want to write a batch file so that the following info is put into a text file: user name computer name log in date as each new user logs onto my network, the above info is put into the text file...
Summary: Can anyone help me with this problem i am having. I am trying to get this stupid Batch file to work on an NT machine. How do I make an enviromental variable = to the contents of a text file? Thanks fo...