📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

.BAT .VBS & packaging question

I have made myself a .vbs script that triggers lots of batch files and tasks etc however whats the best way to get it into a simple .exe or application?

Comments

  • By "best" do you mean "free"? There are programs out there that will convert .BAT, .VBS and so on into .EXE files, for example (but not as a recomm) top of the google list is: http://www.scriptcode.com/battoexe/
    Friendly greeting!
  • John_Gray
    John_Gray Posts: 5,851
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    Forumite
    You haven't said why you want to convert the calling VBS script into an EXE file. What's wrong with running it as it is?
  • Mark_h_4
    Mark_h_4 Posts: 118 Forumite
    Essentially there is nothing wrong with running it as it is.

    The script itself was created to setup lots of laptop settings and shortcuts in a hurry (We needed to deploy 50 in a week and they didnt use profiles as such) but I have started using it to learn new skills etc and its grown into quite a handy 'tool' I use at work. I have expanded it as much as I can I think and I thought well maybe packaging it would be the next thing to learn how to do.
  • RobTang
    RobTang Posts: 1,064 Forumite
    Its not really (any more) useful as .exe

    Creating a windows installer package (.msi) would be a better option from both a practical and acquiring new skills point of view.
  • RobTang wrote: »
    Its not really (any more) useful as .exe

    Creating a windows installer package (.msi) would be a better option from both a practical and acquiring new skills point of view.

    You are assuming he wants to install it, which I don't think is the case here.

    You have a number of options. The best for you would probably be http://nsis.sourceforge.net/Main_Page

    You could use that to package multiple scripts and a bat file into an exe, it will extract all files and execute whichever you choose.
    If my post helped you in anyway, please hit the "Thanks" button! Please note any advice I give is followed at your own risk!
  • Mark_h wrote: »
    would be the next thing to learn how to do.

    Changing it to an exe won't really teach you much. Looking at achieving the same thing in a language that can be compiled would probably be more useful. Have a look at a .net language (VB is the easiest though it is worth considering C# as well) learning these can be very useful even when not a programmer.
    There's no sense crying over every mistake.
    You just keep on trying till you run out of cake.
  • paddyrg
    paddyrg Posts: 13,543 Forumite
    btw - if your 50 laptops are all the same make/model, you can save a lot of grief next time by using imaging software (basically you se up one laptop perfectly with all your programmes, links, everything, then clone it onto all the others)
  • John_Gray
    John_Gray Posts: 5,851
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    Forumite
    ... and incur lots of grief because of duplicating the same Machine SID over all the laptops, to say nothing of the same Windows Product Key!
  • S0litaire
    S0litaire Posts: 3,535
    Part of the Furniture 1,000 Posts Combo Breaker
    Forumite
    edited 5 January 2012 at 2:32PM
    Their are 2 ways to install Windows Standard install (stick CD/DVD in and let it boot!) and from an answer file (known as Unattended Setup). Basically the same as a standard install but all the questions are read from a text file (i.e. machine name, region keyboard settings, network settings)

    Look into "Automated installation kits" for windows it lets you install a single machine to the way you like and take an image of that machine on a Network share, HDD or DVD, it then the next time you reboot it (i.e. when you stick the image onto a new machine.) it runs a basic Install wizard that creates the unique ID's required like the SID. you can set the answer file up with the required CD-Keys on a usb stick (or floppy drive)

    *Note it's been 10 years since I've ever needed to create an install image.

    More info here:
    http://technet.microsoft.com/en-us/library/ee523216%28WS.10%29.aspx
    and here:
    http://technet.microsoft.com/en-us/library/ee461266%28WS.10%29.aspx
    Laters

    Sol

    "Have you found the secrets of the universe? Asked Zebade "I'm sure I left them here somewhere"
  • Mark_h_4
    Mark_h_4 Posts: 118 Forumite
    Because of the company I work for there are strict policies about builds etc (we're only allowed to use specific one's) so I couldnt modify that or anything.

    however a different language may be a good idea.
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.2K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.