Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Temp files cleanup
Message
From
25/09/2003 00:08:21
 
 
To
24/09/2003 21:52:16
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00832068
Message ID:
00832084
Views:
32
John,

>ApprDir = sys(5) + curdir()
>Tempdir = sys(2023)
>cd (TempDir)
>FileCnt =adir(Temps)
>on error X = .T.

>for Ctr = 1 to FileCnt
>erase (Temps[Ctr, 1])
>endfor

>cd (AppDir)

>The "on error" line is just to prevent the display of errors if a file is in use. This >code does not work. I am always left in the temp folder not the application folder.

Could that be because your application directory is ApprDir in the first line and AppDir in the last line?

David
Previous
Reply
Map
View

Click here to load this message in the networking platform