Page 1 of 1 1
Topic Options
#66196 - 2002-06-06 04:08 PM If Exist...
Playmaker66 Offline
Lurker

Registered: 2002-05-14
Posts: 3
Hi All,

Can you please help me with the IF EXIST "command"...? An example would be nice [Smile]
I'm just looking for a simple:

IF EXIST "filename"
GOTO XXX
ELSE
ENDIF

Thanks!!
Regards,
Aage (a little embaressed)

Top
#66197 - 2002-06-06 04:11 PM Re: If Exist...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... if it were not for the missing brackets...

code:
while exist("%temp%\_ISTMP1.DIR")
"."
sleep 10
$Index = $Index + 1
if $index > 20
$RC = MessageBox("NOTICE!" + Chr(13) + "Installation did not complete within a reasonable time!"
+ Chr(13) + "Please notify the FF HelpDesk at ext. 1864","IBM Client Access Express",48,60)
goto finish
endif
Loop

If not Exist("C:\Program Files\IBM\Client Access")
? "Core install failed, Retrying..."
$RC = DelTree("HKLM\Software\IBM\Client Access")
GoTo START
Else
? "Done the core install"
Endif


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66198 - 2002-06-06 04:19 PM Re: If Exist...
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
There is a simple example on page 63 of the Kixtart manual. Yes, it's true, there is a MANUAL !! But don't tell anybody!
_________________________
There are two types of vessels, submarines and targets.

Top
#66199 - 2002-06-06 04:47 PM Re: If Exist...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Darn... missed an opportunity to slam a newbie with RTFM.

BTW Playmaker66, welcome to the board.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66200 - 2002-06-06 04:51 PM Re: If Exist...
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
Be nice... there was no poll
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#66201 - 2002-06-06 05:51 PM Re: If Exist...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I was... and I left my "nose" out of it. [Big Grin]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66202 - 2002-06-07 09:26 AM Re: If Exist...
Playmaker66 Offline
Lurker

Registered: 2002-05-14
Posts: 3
Thanks for the warm welcome [Smile]
(And I hate, or rather dislike, that manual...)

Top
#66203 - 2002-06-07 02:38 PM Re: If Exist...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Me too... only because it's in Word. That's why I download and use the html version from ScriptLogic.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66204 - 2002-06-07 03:35 PM Re: If Exist...
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I like the printed version [Wink]

It now look rather used though.
_________________________
There are two types of vessels, submarines and targets.

Top
#66205 - 2002-06-07 03:37 PM Re: If Exist...
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
The printed version is on my desk open and several pages are stained with those eternal little coffee rings.

The HTML is nice, but that is my backup.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#66206 - 2002-06-07 03:42 PM Re: If Exist...
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Now, if we could make the HTML version look as weathered as the printed one, then I might convert. Maybe splatter a couple of coffee stains as background images into the code.
_________________________
There are two types of vessels, submarines and targets.

Top
#66207 - 2002-06-07 04:10 PM Re: If Exist...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Dog-eared doesn't score points in my book but what would be really nice is if the search tab actually worked. About the only time I spark up the DOC version is if I want to "search". If I wasn't so darn lazy, I'd convert the DOC to html and post it on my intranet.

Did I ever mention I hate Word? I also hate how it converts to html.!YUCK!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 895 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.062 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org