OK, Sirbounty, looks cool! How do I run it, compile it, make it happen? You're dealing with a bat guy here. :)
Main Topics
Browse All TopicsAttached is a batch file that I want to convert to VB. Is there a program that does this? I don't have time to learn VB. Once converted to VB, is there any thing that is required to run it?
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Well hello Bat Guy. :^)
You can double-click it (name it something.vbs) and it'll utilize the default script engine (typically wscript.exe).
Otherwise, you can launch it 'manually' using
cscript filename.vbs
The difference is that you can utilize
wscript.echo "Some text"
to display text on-screen, like a batch 'echo' would do.
If you use the wscript engine however, wscript.echo will always appear just like a msgbox does...in a 'popup' box (with an OK button).
Based on your excellent instructions, I inserted the following lines:
Msgbox "Please wait while I zip all the configs on your laptop...."
wscript.sleep 2500
Worked great! The "All done" message actually appeared before the zip job was finished, but that's ok. They can see that its not done yet, and they can click OK after its finished (unless there's wait command?).
Hmm - you can try replacing line 3 again with:
objShell.Run "Start /wait " & chr(34) & "C:\Program Files\WinZip\wzzip" & chr(34) & " -r -p " & zipFile & " " & chr(34) & "c:\a-my configs\*.cfg" & chr(34)
or
objShell.Run "cmd /c Start /wait " & chr(34) & "C:\Program Files\WinZip\wzzip" & chr(34) & " -r -p " & zipFile & " " & chr(34) & "c:\a-my configs\*.cfg" & chr(34)
Uh oh, I screwed up. I got a naughty message with that one. I probably did too much editing. Here's what I did:
Dim objShell : Set objShell = CreateObject("Wscript.Shel
Msgbox "Please wait while I zip all the configs on your laptop...."
wscript.sleep 2500
zipFile = "c:\zipfolder\email_this_f
objShell.Run "Start /wait " & chr(34) & "C:\Program Files\WinZip\wzzip" & chr(34) & " -r -p " & zipFile & " " &
chr(34) & "c:\a-my configs\*.cfg" & chr(34)
Msgbox "ALL DONE!!" & vbNewLine & "Now I will open a folder showing you where the zip file is." & vbNewLine &
"Please email this zip file to leechipturner@gmail.com"
objShell.Run "cmd /c start " & Left(zipFile, InstrRev(zipFile,"\"))
Business Accounts
Answer for Membership
by: sirbountyPosted on 2009-01-16 at 10:00:41ID: 23395470
Something like this should work - although if you're looking to automate the email, that can be accomplished by providing your smtp server settings (if they'll be the same or accessible by each user)
Select allOpen in new window