Problem in running Batch files on Remote Desktop

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





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"

.



Relevant Pages

  • Re: Problem in running Batch files on Remote Desktop
    ... i am really stuck here....i can set the remote desktop session to last ... here is the rest of the script "sma.bat" ... batch file would not perform any further actions. ... before leaving for the day after resizing the Remote Desktop window, ...
    (microsoft.public.windows.server.scripting)
  • Re: Problem in running Batch files on Remote Desktop
    ... Also it is worth checking if there are any function/command similar to sendkeys in your script ... batch file would not perform any further actions. ... Remote Desktop, script is able to complete all the actions ... before leaving for the day after resizing the Remote Desktop window, ...
    (microsoft.public.windows.server.scripting)
  • Re: Problem in running Batch files on Remote Desktop
    ... here is the rest of the script "sma.bat" ... batch file would not perform any further actions. ... Remote Desktop, script is able to complete all the actions ... before leaving for the day after resizing the Remote Desktop window, ...
    (microsoft.public.windows.server.scripting)
  • Re: Remote Desktop Connection/FTP: Date/time/duration tracking?
    ... which is based on a script issued by the Microsoft Scripting Guy. ... Launch a Remote Desktop session. ... See if the Command Prompt shows the event. ...
    (microsoft.public.windowsxp.general)
  • RE: Automatically logon using ActiveX Web Remote Desktop?
    ... - the server must be configured to accept log-ins from the client... ... here is my script so far: ... > We're talking about doing Remote Desktop using the ActiveX browser control. ...
    (microsoft.public.windows.terminal_services)