Scripts Thread, convert vbs to exe in Coding and Web Development; Just sorted out a vbs to run a program that requires a password in the vbs (saves me having to ...
Just sorted out a vbs to run a program that requires a password in the vbs (saves me having to make the users local admins while they are logged on ), so would like to convert it to an exe to make it safe, after a bit of googling I can find paid for ones and evaluation ones but does anyone know of a free one?
Do you mean you are using Service Pack 2 and haven't installed Service Pack 3? The reason I ask is that for some reason SP3 kills the Script Encoder:
It should be noted that after installing windows XP SP3, the script encoder, screnc.exe, will not work. You will continue to get an error like "screnc.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
This error will only occur when actually trying to encode a script, simply running screnc.exe will not cause the error. I don't see MS fixing this error any time soon, so if you need the script encoder, you will have to skip SP3, or have a VM handy that skips SP3.
Could your script not be made into straight VB? These type of converters have been discussed here before and the general consensus was that these programs seem to just compress the thing and then run it from a temp file.
I assume your script is using run somewhere or something? One option would be to use autoit as that has a native compiler and there seems to be some run as examples. http://www.autoitscript.com/forum/in...howtopic=77936
EDIT looks like the command was renamed with different functionality if you read that thread but you could investigate the rest.
Yes, thats correct we have not installed SP3 here, just any updates that would be required using WSUS (service packs not included), anyway looks as though it may not work for me.
If you want a hand converting it to an EXE, I'll take a look at it for you if you want? I've got VB.net running on my system, I'm sure it wouldn't take me long to convert your script to code and send you the compiled EXE
- Support for Executable Files, Batch Files, VB Script & Windows Installer Packages
- RunAsUser can now compile your target files into the executable you create
- Password is now encrypted with a 64bit Cipher to stop the discovery of the password
- User Name and Password can be saved to the registry (encrypted), saving you having to type them again and again