Turn a vbs file into an exe
If wildcards are not supported, perhaps use the cmd. Then using the the FOR command to redirect with append each file in the wildcard. One trick to this would be creating the incrementing file index used in the SED formation.
However, I'm sure a CmdScript expert could figure out a tricky way to do it. Thanks, Mystic Taz. I ended up exploring PowerShell and writing my first script to dynamically create an SED from a provided directory. Pretty cool stuff:. Is it possible to pass command line parameters to my script so that I can run an. Tis topic has been closed and answered for years. Please start a new topic with your question. Unfortunately I don't have control over how the original install set is built - it is 'compiled' by a utility that mashes a bunch of.
The template MSI file then interprets an include. Kind of cool, in an "Oh my God I can't believe they thought that was a good idea but it kind of works" way. I suppose none of that really matters for this discussion.
What matters is that I have a tree of files that I need to package and then have unpacked as a file tree , not a flat list of files. My question is this: is there a way to accomplish the preservation of the file hierarchy either through the iExpress wizard or by hand editing the. SED file? This is a very old discussion; in addition, I believe the aforementioned iexpress tool is deprecated.
Remember that this is a scripting forum. If you have a scripting question, please start a new question and be as specific as possible as to what your specific scripting question is. I hadn't noticed the original posting date, just the Friday, December 14, PM date on the message I replied to. Since you are a moderator and I don't spend much any time in the scripting forums, perhaps you can point me at the correct forum to post to? I would prefer to make the process automated since this will be the last step in an automated build.
Sorry, I don't know, but you could peruse the list of TechNet Forums and perhaps something will look applicable. I personally use the 7-Zip tool for lots of things. But again, your question is really not within the scope of this forum. Office Office Exchange Server. Not an IT pro? Script Center. Sign in. United States English. Ask a question. Quick access. Search related threads. Remove From My Forums. Asked by:. Remove From My Forums. Answered by:. Archived Forums V.
Visual Basic Express Edition. Sign in to vote. I make a vbs to exe compiler,but i dont know how to do that. Help pleaze. Sorry for my bad english. Monday, April 13, PM.
Hi, No your right, thought the idea was to stop users from modifying it. People who need to run it can open and read it. It's a trust thing if you can execute it you have to read it. I think honestly now your best bet is to use the earlier recommendation by Deborahk. Everything else has been exhausted, writing something yourself really isn't as simple as you may think otherwise everyone here would have told you how to go about it. Here is one last idea, just came to me actually as I wrote the above.
If this isn't good enough then I don't know what is. May I recommend something, hope you don't mind, but when you post try not define the solution. In other words post what you want to do and not necessary how you want to do it. When you make a suggestion on a potential solution write a compiler the focus becomes the solution and not the problem, when you state the problem protecting VBScripts from reading and writing but still executing then you'll get a variety of solutions.
Just a posting tip for the future. Ok try this, create a new project and double click MyProject in the solution explorer.
Goto the resources tab and along the top select the small down arrow next to the Add Resource button. Select Add Existing File. Select a VBS file. This will embed the script into the application as a text file but thats fine.
Then you can use this code to save and run the script Replace ". All you need to do is pasting the MsScriptControl to the Purebasic editor and add something like this below. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 11 years, 1 month ago. Active 3 years, 10 months ago. Viewed k times. Improve this question. Adriaan Alex Cheng Alex Cheng 2 2 gold badges 9 9 silver badges 21 21 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Cody Gray: Hi thanks for the reply. Well if possible I don't mind having a SFX and launching the script but to what I'd tried mostly the script doesn't get executed.
The closest was the exe generated by iexpress but somehow I can't figure out why it fails on certain Win7 machines. NET since I only have it on my machine. Unless I specifically look for the older version VB6 to compile the code. Answer accepted, ported it successfully to VB. That's the only thing that I can't migrate.
Alex: Glad to hear the port went well for you. I'd say the best equivalent of GetLocale after a quick Google search to see what exactly it does! LCID property , found in the System. Globalization namespace. With ScriptCryptor, you can embed these files directly into the executable.
Before executing the main script, these files will be extracted to a temporary folder, and then you can access them from the script. The files will be deleted automatically after the main script is executed.
How to create Windows executable. How to compile JavaScript?
0コメント