Computing.Net > Forums > Disk Operating System > batch file wont work

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

Reply to Message Icon

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?



Sponsored Link
Ads by Google

Response Number 1
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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: batch file wont work

Batch files not working / Win2000 www.computing.net/answers/dos/batch-files-not-working-win2000/12282.html

User log in date from a batch file www.computing.net/answers/dos/user-log-in-date-from-a-batch-file/7783.html

DOS Batch file help www.computing.net/answers/dos/dos-batch-file-help/6382.html