Script to Launch at the Time of Login
Keywords: login script logon script
Question:
I would like to have a .wbt script launch at the time of login and check to see if the user's pc has all the updated information before Windows is run. How do I do that?Answer:
- Put it in the Startup Group, in your StartUp folder, or....
- Add it to the RUN= or the LOAD= line of the WIN.INI file.
You can write some code to do this automatically. Run this once on a machine, it would continue to run itself.
Something like:
addfile="MYPROG.WBT" ; or MYPROG.EXE is it is compiled a=IniRead("Windows", "RUN","") a=strupper(a) b=ItemLocate(a,addfile," ") if b==0 then a=strcat(a," ",addfile) then IniWrite("Windows","RUN",a)
Article ID: W13882Filename: Script to Launch at the Time of Login.txt