• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 500
  • Last Modified:

VBscript to an Executable

I have a vbscript that I need to make an executable.  It is very short script but in order to have it run with another program, the program can only call an .exe, not anything else.

Set wshShell = wscript.CreateObject("WScript.Shell")
wshshell.sendkeys "{CAPSLOCK}"

I am not sure how to make this an .exe.  Any help would be appreciated.

Thank you.
0
cbones
Asked:
cbones
2 Solutions
 
inoxCommented:
you can call wscript.exe and pass the name of your script as argument

wscript.exe "yourscript.vbs"


0
 
ienaxxxCommented:

http://www.autoitscript.com/site/
OR
http://www.autohotkey.com/

it allows you to compile scripts into EXE

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now