Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP-Way to halt DOS display when running ! command
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00035255
Message ID:
00035554
Views:
34
> The legacy code I have inherited assigns random generated file names using > the sys() function that does that (21, maybe?) to the tmp files and neither > of the commands you suggested support wildcards. > > Com'on I need one of your slick workarounds! :-). As an alternative to using ADIR(), you might want to consider the following: m.lcFile = sys(2000,"C:\TEMP\*.TMP") m.lcNotDeleted = "" do while not empty(m.lcFile) on error m.lcNotDeleted = m.lcNotDeleted + ","+m.lcFile erase (m.lcFile) on error m.lcFile = sys(2000,"C:\TEMP\*.TMP") enddo if not empty(m.lcNotDeleted) wait window "Unable to Delete: "+substr(m.lcNotDeleted,2) endif
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Previous
Reply
Map
View

Click here to load this message in the networking platform