Batch Files Stop Executing with Windows 2000

  • Thread starter Thread starter Jason Barona
  • Start date Start date
J

Jason Barona

I have a batch file that works just fine on NT 4.0. We are
changing to Windows 2000 and the Batch file stops
executing when running on Windows 2000. I ahve included a
copy of the bat file.

@echo off
rem DISCONNECT.BAT 04/01/2003
rem Used to issue DataRec disconnects into CRM

rem Start-up WinRunner and get into CRM
c:
cd \
rem "C:\Program Files\Mercury
Interactive\WinRunner\arch\wrun.exe" -t "H:\DSG WinRunner
Scripts\open crm" -animate

:main
rem Get the next TN to 'disconnect' from the deny database

rem erase "c:\program files\mercury
interactive\winrunner\tmp\test_AutoDisc092002_1\script"
rem copy c:\script "c:\program files\mercury
interactive\winrunner\tmp\test_AutoDisc092002_1\script"

erase disconnect.txt
rsh 96.130.58.10 -l otto next_dis %1 > disconnect.txt
erase "c:\program files\mercury
interactive\winrunner\tmp\test_AutoDisc092002_1
\disconnect.txt"
copy c:\disconnect.txt "c:\program files\mercury
interactive\winrunner\tmp\test_AutoDisc092002_1
\disconnect.txt"

rem Run the WinRunner script to add the disconnect note
and (if Active Service rem state) proceed through CRM
scripting to issue the disconnect
rem"c:\Program Files\Mercury
Interactive\WinRunner\arch\wrun.exe" -t "H:\DSG WinRunner
Scripts\test_AutoDisc092002_1" -animate

rem pause
goto main

Help would greatly be appreciated.

Thanks.
 
Jason Barona said:
I have a batch file that works just fine on NT 4.0. We are
changing to Windows 2000 and the Batch file stops
executing when running on Windows 2000. I ahve included a
copy of the bat file.

What do you mean? It never starts to run? It stops at a specific spot?
You get an error?

Ray at work
 
Your double quotes (") are all over the place. They must surround
your file names, and they must always be paired.

Example: You write
Interactive\WinRunner\arch\wrun.exe" -t "H:\DSG WinRunner Scripts\open
crm" -animate

It should probably be:
"Interactive\WinRunner\arch\wrun.exe" -t "H:\DSG WinRunner
Scripts\open.crm" -animate

Note the full stop before "crm".
 
Hi Jason,
we've got the same problem. Have you got it fixed? If yes, how?
Thanks a lot for your help.
Andre

PS: Our batch goes further after pressing Enter... We also use rsh in
this batch file..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top