Page 1 of 1 1
Topic Options
#119513 - 2004-05-13 03:48 PM comspec question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
trying to execute the following code. It appears that some computers are having trouble with %userprofile%. I think I have to put comspec in somewhere. Any ideas on the best way to do this?

Code:
 IF EXIST ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\") AND ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\frmcache.dat")
DEL "%userprofile%\Local Settings\Application Data\Microsoft\Forms\frmcache.dat" /c /f
ELSE
ENDIF


Top
#119514 - 2004-05-13 03:58 PM Re: comspec question
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you have kinda syntax error there.
it won't bounce as your way is allowed syntax but it's logically little off.

replace:
IF EXIST ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\") AND ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\frmcache.dat")

with:
IF EXIST ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\frmcache.dat")
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.053 seconds in which 0.027 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