MHz,
Thanks for your assistance. Very much appreciated. It certainly got me started, i'm thinking I may need a second variable for the YES or NO option. I'm also wondering if it makes more sense for it to go above the enter number variable. There are two different command line variables depending whether or not we want it to install, or install as default.
Run(@ComSpec & " /c " & @SystemDir & "\iprntcmd.exe
http://www.iprint.xxx.xxx/ipp/RP" & $name & " /add /default")
or
Run(@ComSpec & " /c " & @SystemDir & "\iprntcmd.exe
http://www.iprint.xxx.xxx/ipp/RP" & $name & " /add ")
I've updated this script with your suggestion as well as a few check variables at the beginning. At the moment it, you enter the variable it launches the dos commmand then promts for yes or no. then attempts to execute the default command depending if you choose yes. Ideally if it obtained the yes/no value, then asked for the printer number.. it could use that data to execute only the correct command. Anyways, back at it.. so thanks so much for you assistance
This are the checks im adding in at the beginning:
If Not (@OSVersion == "WIN_2000") And Not (@OSVersion == "WIN_XP") Then
Exit
EndIf
; Exit immediately if running within Citrix
If FileExists("T:\WINNT\explorer.exe") Then
Exit
EndIf
If FileExists("y:\batch\nipp.exe") Then
; continue script
Else
MsgBox(48, "ATTENTION - Fatal Error", "Cannot locate Y:\Batch\nipp.exe." & @LF & @LF & "Please call the Help Desk x34357")
Exit
EndIf