How do I convert this cmd file to a vbs file, any suggestions what to do,.

'All one line
C:\WINDOWS\system32\cscript.exe "c:\program
files\gpmc\scripts\BackupAllGPOs.wsf" "O:\GPO Policies\" DEVELOPMENT "GP
Backup"

Thanks Don

Re: How to convert cmd to vbs by Steve

Steve
Wed Sep 17 07:18:57 CDT 2003

Don Grover wrote:
> How do I convert this cmd file to a vbs file, any suggestions what to do,.
>
> 'All one line
> C:\WINDOWS\system32\cscript.exe "c:\program
> files\gpmc\scripts\BackupAllGPOs.wsf" "O:\GPO Policies\" DEVELOPMENT "GP
> Backup"

With CreateObject("WScript.Shell")
.Run "C:\WINDOWS\system32\cscript.exe " _
& """c:\program files\gpmc\scripts\BackupAllGPOs.wsf"" " _
& """O:\GPO Policies\"" DEVELOPMENT ""GP Backup""", 0, True
End With

Run Method
http://msdn.microsoft.com/library/en-us/script56/html/wsmthrun.asp

Download Windows Script Documentation
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9

--
Steve

There is no king who has not had a slave among his ancestors, and no slave who
has not had a king among his. -Helen Adams Keller



Re: How to convert cmd to vbs by Don

Don
Thu Sep 18 01:03:00 CDT 2003

Thanks Steve

"Steve Fulton" <cerberus40@hotmail.com> wrote in message
news:OjtynaRfDHA.616@TK2MSFTNGP11.phx.gbl...
> Don Grover wrote:
> > How do I convert this cmd file to a vbs file, any suggestions what to
do,.
> >
> > 'All one line
> > C:\WINDOWS\system32\cscript.exe "c:\program
> > files\gpmc\scripts\BackupAllGPOs.wsf" "O:\GPO Policies\" DEVELOPMENT "GP
> > Backup"
>
> With CreateObject("WScript.Shell")
> .Run "C:\WINDOWS\system32\cscript.exe " _
> & """c:\program files\gpmc\scripts\BackupAllGPOs.wsf"" " _
> & """O:\GPO Policies\"" DEVELOPMENT ""GP Backup""", 0, True
> End With
>
> Run Method
> http://msdn.microsoft.com/library/en-us/script56/html/wsmthrun.asp
>
> Download Windows Script Documentation
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9
>
> --
> Steve
>
> There is no king who has not had a slave among his ancestors, and no slave
who
> has not had a king among his. -Helen Adams Keller
>
>