WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Time - Timer and Date Functions
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:57:02
Last Updated: 1999:04:15:16:57:02