![]() You mentioned going this route in your question (porting your current script in to VB Express 2008, which uses VB.NET), but that you were getting a lot of errors. Fortunately, this has also become commonplace, and it can be easily redistributed if your users don't happen to have it. NET Framework runtime to be installed on the user's computer. NET, which remains somewhat similar in syntax to VB 6 and VBScript (although it won't be anywhere near a cut-and-paste migration). ![]() exe file will require that the user has the VB 6 Run-time libraries installed, but they come built into most versions of Windows that are found now in the wild.Īlternatively, you could go ahead and make the jump to Visual Basic. If you move your VBScript code to VB 6, you can compile it into a native executable. NET Framework was introduced) is extremely similar in syntax to VBScript, but does support compiling to native code. Visual Basic 6 (the latest version of VB, before the. In order to truly convert your VBScript into an executable file, you're going to have to rewrite it in another language that can be compiled. I suppose that can have its benefits, but it doesn't sound like what you're looking for. If it isn't compressed in the first place, this is a moot point.Īlternatively, as you mentioned, there are ways to wrap VBScript code files in a standalone executable file, but these are just wrappers that automatically execute the script (in its current, uncompiled state) when the user double-clicks on the. The only purpose of a self-extracting archive is that decompression software (like WinZip) is not required on the end user's computer to be able to extract or "decompress" the file. It's doubtful that the file size will shrink noticeably, and since it's a plain-text file to begin with, it's really not necessary to compress it at all. ![]() The process of converting source code into native executable code is called "compilation", and it's not supported by scripting languages like VBScript.Ĭertainly you can add your script to a self-extracting archive using something like WinZip, but all that will do is compress it. There is no way to convert a VBScript (.vbs file) into an executable (.exe file) because VBScript is not a compiled language.
0 Comments
Leave a Reply. |