poeee Posted August 13, 2004 Posted August 13, 2004 I'm trying to get AVG running from a batch file running in [GuiRunOnce].Now i've got a VBScript which when run by itself (not through guirunonce) installs AVG fine. It's what i've got in the batch file which is the problem.The VBS...Set WshShell = WScript.CreateObject("WScript.Shell")WshShell.Run ("setup.exe")WScript.Sleep 4000WshShell.SendKeys "~"WScript.Sleep 1000WshShell.SendKeys "~"WScript.Sleep 1000WshShell.SendKeys "AVG-*-********-***"WScript.Sleep 1000WshShell.SendKeys "~"WScript.Sleep 1000WshShell.SendKeys "~"WScript.Sleep 1000WshShell.SendKeys "~"WScript.Sleep 1000WshShell.SendKeys "~"WScript.Sleep 18000WshShell.SendKeys "~"WScript.Sleep 1000WshShell.SendKeys "~"WScript.Sleep 1000WshShell.SendKeys "~"WScript.Sleep 1000WshShell.SendKeys "~"and the batch file...ECHO.ECHO Installing AVGECHO Please wait...start /wait %systemdrive%\install\Applications\AVG\avg.vbsAs I said, i'm almost positive it's the batch file, as it just doesn't look right.Could someone help me?
MCT Posted August 13, 2004 Posted August 13, 2004 looks finetake out your cd key from the post tho (atleast thats what i think it is)
poeee Posted August 13, 2004 Author Posted August 13, 2004 The .vbs is fine, works all good. Doesn't work when running from the batch file.
MCT Posted August 13, 2004 Posted August 13, 2004 i just made a simple vbs script & it worked*.cmd start /wait test.vbs*.vbsSet WshShell = WScript.CreateObject("WScript.Shell")WshShell.Run ("notepad.exe")works fine.. maybe something in your path?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now