I have this script that prompts you to define one of the application switches, then asks you to pick a file to chuck towards the application, but if the file is anywhere but in the same folder that the script is run from it errors with file not found from the last line
the script is
------------------------------------------------
dim response1
Set Wshshell = CreateObject("Wscript.Shell")
response1 = inputbox("please define the switch first then pick the file", "Machine name")
set oFO = CreateObject("SAFRCFileDlg.FileOpen")
oFO.OpenFileOpenDlg
Wshshell.run "audit --" & response1 & " --input=" & oFO.FileName & " --log=audit.log"
----------------------------------------------
cheers
Gurner
the script is
------------------------------------------------
dim response1
Set Wshshell = CreateObject("Wscript.Shell")
response1 = inputbox("please define the switch first then pick the file", "Machine name")
set oFO = CreateObject("SAFRCFileDlg.FileOpen")
oFO.OpenFileOpenDlg
Wshshell.run "audit --" & response1 & " --input=" & oFO.FileName & " --log=audit.log"
----------------------------------------------
cheers
Gurner