Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBSCRIPT converison

Status
Not open for further replies.

cipro

Technical User
Apr 27, 2002
50
CA
I have some scripts that have been written into BAT files. I would like to know if there is a utility that will allow me to convert these BAT scripts into VB scripts?

Does anyone know of anything that can help?
 
Hi Cipro

I take it you mean the files have lines of Dos commands. Unfortunately I have not seen anything which does this type of conversion.

However, if the scripts are doing simple things, like moving files, then a rewrite in VBscript would not be that difficult, look on it as a learning opportunity. If however they are heavily dependent on some of the more obscure DOS commands then I would leave them alone. If it ain't broke don't fix it :)
 
problem is I need to convert them so they will be conpatable with a new software package being deployed within my company. Mostly the commands involve creating directories, modifying the registy and changing permissions. Is there a good resource online where I can learn some VBS?
 
Hi Cipro best resources are: 1. Microsoft.com, do a search for VBscript, download the VBScript packages and documentation. All the VBS books I've ever read seem to be based on this. 2 Tek-tips have a VBS forum., do yourself a favour and sign up :) 3 The reference book i use mostly is O'Reilly's VBScript pocket reference. If you are fairly competent with VB then you wont have any problem with VBS, its just a cut down version of VB(no forms). Life will be even easier if you have been using objects in VB, especially for file handling.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top