Dear,

We look at your script and we have some advise.


  • use %comspec% instead of command call
  • use shell instead of run call when your script must
    wait on completion of this command.
  • IF (exist("filename") <> 0) is must clear then
    the usage of IF exist("filename").
  • %net_name% is for use an unknown environment variable. By profiles
    in a Windows 95 environment it will be the @userid value for existing
    profile of that user - c:\windows\profiles\@userid\desktop,
    or it will be the general desktop c:\windows[desktop.
  • use new string format of kixtart
    $message=@date+" "+@time
    instead of
    $message="@date @time"

The script can be:

code:

IF SetConsole("HIDE")
ENDIF
IF (Exist("c:\windows\profiles\"+@userid+"\desktop\Page Gate.lnk") <> 1) ; -shortcut doesn't exist-
$message=@date+" "+@time+" "+@userid+" "+@wksta+" "+@ipaddress0+" "+@address
SHELL "%comspec% /c echo "+$message+" PageGate 3.6 client setup not required >>\\amlars201\common\logs\pagegate\pgpoly.txt"
$user=@userid
$name=@fullname
$ipa=@ipaddress0
$msg=$name+Chr(10)+"The PageGate Client shortcut icon is on your desktop"+Chr(10)+"If PageGate is not functioning properly"+Chr(10)+"Contact Joe Smith, (***) ***-****"
MessageBox($msg, "PageGate Icon Update not Required", 64, 10)
ELSE
$user=@userid
$name=@fullname
$ipa=@ipaddress0
$msg=$name+Chr(10)+"The PageGate Client setup will now execute "+Chr(10)+"After installation completes, please run PageGate to verify connectivity"+Chr(10)+"If you need assistance"+Chr(10)+"Contact Joe Smith, (***) ***-****"
; shell "erase note pa*.* /s"
; shell "\\amlars406\apps\pagegate\client\setup\pgcsetup.exe /S"
; shell "regedit /s n:\pagegate\pagegate.reg"
MessageBox($msg, "PageGate Icon Update", 64, 10)
SHELL "%comspec% /c echo "+$message+" PageGate 3.6 client setup executed >>c:\pgpoly.txt"
ENDIF

Greetings.

------------------
Site map:

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA