Problem in running Batch files on Remote Desktop
- From: "workmonu" <workmonu@xxxxxxxxx>
- Date: 4 Aug 2006 02:49:05 -0700
I faced an unusual problem. Whenever i run the batch file from the
Remote De
sktop window and minimize the Remote Desktop to come back to my
desktop, the
batch file would not perform any further actions. However if i stay on
the
Remote Desktop, script is able to complete all the actions
successfully.
Also when i reduce the Remote Desktop window to a very small size and
just r
un the batch file by pressing Enter and do not click anywhere on the
Remote
Desktop window afterwards, the scripts keep on running fine and
complete the
ir actions successfully. However i doubt if i run the scripts in the
evening
before leaving for the day after resizing the Remote Desktop window, i
am a
fraid that once the connection to the Remote Desktop window times out
and it
gets closed, it might cause further scripts to not run properly.
I am using this WSH base script to run a script for 4 hours and when it
term
inates, i close the application running this script, and rerun it, so
as to
run the script for longish durations.
I am running a batch file which launches this wsh based script.
i am including the main batch file here which is used to launch the wsh
scri
pt.
cmd /c start "" /wait "c:\restart_Stesters.bat"
cmd /c start "sma" /wait "c:\sma.bat"
cmd /c start "" /wait "c:\restart_Stesters.bat"
cmd /c start "sma" /wait "c:\sma.bat"
cmd /c start "" /wait "c:\restart_Stesters.bat"
cmd /c start "sma" /wait "c:\sma.bat"
.
- Follow-Ups:
- Re: Problem in running Batch files on Remote Desktop
- From: Babu VT
- Re: Problem in running Batch files on Remote Desktop
- Prev by Date: Re: Audit script
- Next by Date: Re: remote machine execution
- Previous by thread: Windows PowerShell and the "PowerShell Worm"
- Next by thread: Re: Problem in running Batch files on Remote Desktop
- Index(es):
Relevant Pages
|