Joined: 05 Mar 2003
Location: Stuttgart, Germany
|Posted: Mon Jan 21, 2008 12:08 pm Post subject:
|Welcome to the kixforms forums ... allthough you've asked a kixtart question, I'll provide you with an answer
depending on the checks you may take you can either use
Action: Checks for the existence of one or more files.
Syntax: Exist ("file name")
Parameters: File name
Identifies the file(s) you want to locate.
Remarks: Supports wildcards.
File not found
Examples: IF EXIST (@LDRIVE + "\users.txt")
DISPLAY @LDRIVE + "\users.txt"
IF EXIST (@LDRIVE + "\*.INI")
; Etc, etc.
for a file check or
Action: Checks for the existence of a registry subkey.
Syntax: KEYEXIST ("subkey")
Identifies the subkey you want to locate.
Remarks: KEYEXIST is a replacement to the EXISTKEY function found in previous versions of KiXtart. While functionally equivalent, the Return Codes are now inverted, resulting in behavior similar to the EXIST function.
Subkey not found
See Also: AddKey( ), DelKey( ), DelTree( )
Example: $ReturnCode = KeyExist("HKEY_CURRENT_USER\Console\Configuration")
? "Key exists...."
for checking the relevant registry keys before copying/creating shortcuts...
Future questions regarding KiXtart problems may be better answered on kixtart.org forums here: http://www.kixtart.org/forums/ubbthreads.php?ubb=cfrm
Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.