Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


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:

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:   W13882
Filename:   Script to Launch at the Time of Login.txt