Mar 6, 2003 #1 alonak Programmer Mar 4, 2003 8 IL How can i run this line in vbs , it's works fine from the command line. c:\mssql7\binn\osql.exe /U sa /P /i restore1.txt Tanks .
How can i run this line in vbs , it's works fine from the command line. c:\mssql7\binn\osql.exe /U sa /P /i restore1.txt Tanks .
Mar 6, 2003 #2 Hanzel79 Technical User Feb 13, 2003 16 NL Hi, A short way to execute a commando using VBScript is the following: '==================== Dim WshShell, strCMD strCMD = "c:\winnt\Notepad.exe" Set WshShell = Wscript.CreateObject("Wscript.Shell" WshShell.Run(strCMD) '==================== Hoping this post helps, Grtz Hans If smile = vbFalse Then MsgBox("Smile... Tomorrow will be worse!", ,"Smile..." End If Upvote 0 Downvote
Hi, A short way to execute a commando using VBScript is the following: '==================== Dim WshShell, strCMD strCMD = "c:\winnt\Notepad.exe" Set WshShell = Wscript.CreateObject("Wscript.Shell" WshShell.Run(strCMD) '==================== Hoping this post helps, Grtz Hans If smile = vbFalse Then MsgBox("Smile... Tomorrow will be worse!", ,"Smile..." End If
Mar 6, 2003 #3 BDC2 Programmer Mar 14, 2002 435 GB Is it legal to "execute a commando"? ;-) BDC. Upvote 0 Downvote
Mar 6, 2003 #4 Hanzel79 Technical User Feb 13, 2003 16 NL Eeerrmm.... No comment How about letting a commando run? ;-) Grtz Hanz If smile = vbFalse Then MsgBox("Smile... Tomorrow will be worse!", ,"Smile..." End If Upvote 0 Downvote
Eeerrmm.... No comment How about letting a commando run? ;-) Grtz Hanz If smile = vbFalse Then MsgBox("Smile... Tomorrow will be worse!", ,"Smile..." End If