Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > MMC and Logon & Logoff Scripts Problem
Word :    Username :           
 



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.



Sponsored Links
Register or log in to remove.


OK Problem not resolved but sorted.

Problem resolved in an unsatisfactory way by adding the logon script into the Startup Folder. Not what i wanted but at least it works and does its Job.


Reply to akwe-xavante
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > MMC and Logon & Logoff Scripts Problem
Go to:

There are 1305 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them