corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » MS Dos Help » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

Sam

posted on 10th Dec 06 at 14:59

Isn't there an option called "Close on exit" that you have to keep unticked on the command prompt window?


Andrew

posted on 9th Dec 06 at 22:22

found it :D

you just type in pause at the end of the command.


Steve

posted on 9th Dec 06 at 22:21

run the batch file from the command prompt?


Andrew

posted on 9th Dec 06 at 22:20

My MS Dos For Dummies book has nothing in there :( *Results to searching the internet* :lol:


Andrew

posted on 9th Dec 06 at 22:18

yeah u can steve. but you can also type it out in notepad and then save the file as a .bat. when run, it then runs those commands. but the window closes straight after unlike if you manually type the commend into the dos prompt


Steve

posted on 9th Dec 06 at 22:16

how do you mean?

surely you can just type cmd at the run command and run the batch file from dos that way?


James

posted on 9th Dec 06 at 22:15

Ok well if it helps I found this code

:remote
at \\%Node% %ti% /interactive "%LO%"
goto errorlevel
:0
echo Job completed: %node% >> c:\logs\batch.log
goto :EOF
:1
echo Job Failed: %node% >> c:\logs\batch.log
goto :EOF

That makes the batch file write to the path above.

[Edited on 09-12-2006 by James]


Andrew

posted on 9th Dec 06 at 22:14

My supervisor tells me to use MS Dos. She's the boss so i'm gonna use that :lol:

I pretty much know how to do it, just the .bat file closes after it has done the job and i want it to stay open so i can see everything in there.


James

posted on 9th Dec 06 at 22:11

Can't you get it to write to a log file? :look:

Stab in the dark there, not overly clued up on batch files.


Andrew

posted on 9th Dec 06 at 22:08

Writting a batch file to mirror my website to my hard drive.

How do i keep the MS Dos window open so i can see the errors?