Sign in with
Sign up | Sign in
Your question

How to run a ms-dos batch file on windows xp

Last response: in Networking
Share
March 13, 2012 4:18:40 PM

Hello,
I have a project in java. there are some batch files. i am not able to run those files. it just blinks and disappears immediately. should i change some settings in my windows xp?
March 13, 2012 4:38:28 PM

Edit the batch/command file, add a Pause in at the end. Run it. Hopefully the window repairs open on the pause so you can see what the issue is.

Or you could run the batch/command file from a Command Line to see what the error is or what's happening.

I would suspect that if it opens/closes quickly, one of the first commands in it is incorrect and it cannot continue.
m
0
l
March 13, 2012 5:02:17 PM

Its a read only file. If i run in command line also i'm getting the same response. the first command is "cd build".
m
0
l
Related resources
March 13, 2012 6:04:45 PM

Copy it and make it writeable :)  Ok, first line is "cd build"

"Change Directory to Build"

Let's say the file is in the root of C: and the first line says 'cd build' - If C:\build doesn't exist, it'll bomb out. I would expect the next lines after the first play on the fact that the new path is in C:\build. If it isn't the next commands relying on that will fail.
m
0
l
March 14, 2012 4:33:14 AM

ok.... thanks... i'l try out...
m
0
l
March 14, 2012 4:43:45 AM

I tried by changing directory. stil it does the same response...
cd build
cd compiled
javafx Design.Node
exit

this is the exact lines in that batch file... now my dir is build->compiled->design->node.class...
It doesn't work :( 
m
0
l
!