corsasport.co.uk
 

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


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author MS Dos Help
Andrew
Member

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
9th Dec 06 at 22:08   View User's Profile U2U Member Reply With Quote

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?
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
9th Dec 06 at 22:11   View User's Profile U2U Member Reply With Quote

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

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

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
9th Dec 06 at 22:14   View User's Profile U2U Member Reply With Quote

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

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
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
9th Dec 06 at 22:15   View User's Profile U2U Member Reply With Quote

Ok well if it helps I found this code

:remote
at \\%Node% %ti% /interactive "%LO%"
goto errorlevel

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]
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
9th Dec 06 at 22:16   View Garage View User's Profile U2U Member Reply With Quote

how do you mean?

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

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
9th Dec 06 at 22:18   View User's Profile U2U Member Reply With Quote

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
Andrew
Member

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
9th Dec 06 at 22:20   View User's Profile U2U Member Reply With Quote

My MS Dos For Dummies book has nothing in there *Results to searching the internet*
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
9th Dec 06 at 22:21   View Garage View User's Profile U2U Member Reply With Quote

run the batch file from the command prompt?
Andrew
Member

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
9th Dec 06 at 22:22   View User's Profile U2U Member Reply With Quote

found it

you just type in pause at the end of the command.
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
10th Dec 06 at 14:59   View User's Profile U2U Member Reply With Quote

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

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
HDD probs *help need plz* Corsa Sport Gav Geek Day 35 2573
29th May 03 at 23:12
by Corsa Sport Gav
 
help needed for MS-DOS Corsa Sport Gav Geek Day 5 1136
30th Jul 03 at 15:28
by Sam
 
MS DOS Help Darren Geek Day 3 1119
29th Nov 03 at 20:20
by PaulW
 
URGENT PC Help Needed!! Graham Geek Day 12 1190
20th Jun 04 at 21:36
by James_DT
 
computery question Siberia Geek Day 3 999
19th Oct 04 at 09:19
by Siberia
 

Corsa Sport » Message Board » Off Day » Geek Day » MS Dos Help 29 database queries in 0.0113049 seconds