website stat Autostart a executable on Windows VBS/BAT | The Windows Forum
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to TheWindowsForum

Since 2010 — Over 15 years of helping Windows users worldwide.

Join thousands of Windows enthusiasts & IT pros. Ask questions, share tips, download resources, and connect with the community — free and always friendly.

  • Post & reply in threads
  • Private message other members
  • Access exclusive guides & downloads
  • NO ADS for registered users

Autostart a executable on Windows VBS/BAT

hacxx

VIP
Joined
May 29, 2021
Messages
1,263
Save this file as name.vbs
Code:
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("cmd.exe /c reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run\ /v calc /t REG_SZ /d calc.exe /f"), 0, True
 

Support TheWindowsForum

Help us stay ad-free and keep the community running

Donate Now

Trending content

Back
Top