Example scripts and tips (replaces Old Scripts & Tips archive)
Moderators: Dorian (MJT support), JRL, Phil Pendlebury
-
Rain
- Automation Wizard
- Posts: 550
- Joined: Tue Aug 09, 2005 5:02 pm
-
Contact:
Post
by Rain » Thu Sep 19, 2013 11:50 pm
This example will run a compiled script at Windows Startup without moving a shortcut to the exe to the startup folder by adding a registry entry. It can be removed by deleting the registry entry.
Code: Select all
//This will run an exe at windows startup by adding a registry entry
Let>ExeName=My App
Let>PathToExe=C:\My Exe.exe
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Run,%ExeName%,%PathToExe%
//This will stop running an exe at windows startup by deleting the registry entry
Let>ExeName=My App
RegistryDelVal>HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Run,%ExeName%