Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Visual Basic Programming


ghost's Avatar
0 0

How can i execute windows commands in a visual basic script, like having a bat file in the script. IE when you load the .exe it executes shutdown -s etc etc


ghost's Avatar
0 0

If you want to use shutdown.exe then use Shell(), eg. Shell("shutdown.exe /s"). You can use environ() to get variables like HOMEPATH, WINDIR, etc.