Mar 6, 2003 #1 alonak Programmer Joined Mar 4, 2003 Messages 8 Location 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 Joined Feb 13, 2003 Messages 16 Location 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 Joined Mar 14, 2002 Messages 435 Location GB Is it legal to "execute a commando"? ;-) BDC. Upvote 0 Downvote
Mar 6, 2003 #4 Hanzel79 Technical User Joined Feb 13, 2003 Messages 16 Location 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