Windows XP Pro SP2 complete with all updates.
I have two scripts, a logon.cmd script and a logoff.cmd script. both run and work when used manually.
When added to the MMC console they both run. The logoff script works a treat, no problem, but however the logon script starts OK but fails to complete. Wait.exe is a simple MSDos executable that waits a number of seconds before continueing, this gives a little time for commands to complete before moving on (you can't upload a text file that hasn't been created yet!
############ Code in logon Script begins ############
C:
cd \registration
echo online>onlinestatus.txt
wait 3
ftp -s:logon.txt
wait 3
del onlinestatus.txt
exit
############ Code in logon Script Ends ############
This logon script gets as far as successfully loging into the FTP server in the ftp script but fails to upload the very simple text file. IP Address & login User info changed! The script doesn't log out from the ftp server either.
############ logon.txt contains the code ############
open XX.XX.XX.XX
UserName
PassWord
ascii
put onlinestatus.txt
bye
############ logon.txt contains the code ############
On shutdown the same ftp script runs and completes successfully.
Any thoughts and ideas as to what may be going wrong much appreciated.
I have two scripts, a logon.cmd script and a logoff.cmd script. both run and work when used manually.
When added to the MMC console they both run. The logoff script works a treat, no problem, but however the logon script starts OK but fails to complete. Wait.exe is a simple MSDos executable that waits a number of seconds before continueing, this gives a little time for commands to complete before moving on (you can't upload a text file that hasn't been created yet!
############ Code in logon Script begins ############
C:
cd \registration
echo online>onlinestatus.txt
wait 3
ftp -s:logon.txt
wait 3
del onlinestatus.txt
exit
############ Code in logon Script Ends ############
This logon script gets as far as successfully loging into the FTP server in the ftp script but fails to upload the very simple text file. IP Address & login User info changed! The script doesn't log out from the ftp server either.
############ logon.txt contains the code ############
open XX.XX.XX.XX
UserName
PassWord
ascii
put onlinestatus.txt
bye
############ logon.txt contains the code ############
On shutdown the same ftp script runs and completes successfully.
Any thoughts and ideas as to what may be going wrong much appreciated.