Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does RmDir return anything?
Message
From
08/12/2008 13:59:07
 
 
To
08/12/2008 13:27:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01365987
Message ID:
01366044
Views:
9
>>Well piffle then. Thanks
>>
>>
>>>RMDIR is a command, not a function. Therefore, it does not return anything.
>>>
>>>>Background: I need to create and remove directories in a temp folder. Creating and removing is NOT the problem
>>>>
>>>>The problem comes in if someone is sitting in the directory to be removed. VFP cannot remove the directory and I'd like to catch that and report it.
>>>>
>>>>Question: does RmDir return anything? Since it's VFP 6, no Try..Catch block :-(, and if I have to do the whole "Save Error Routine, On Error, Reset back to old Error", I will - I was just hoping that it returned something I could catch easily.
>>>>
>>>>Thanks
>
>Dorris,
>Would doing a RMDIR followed by a ADIR() (to see if the directory was in fact removed ) be too much of a pain?

The problem comes when someone is sitting in the directory and you try to remove it - generates an error, and since this process is run overnight I needed to trap the error and handle it gracefully. I've been pointed in the direction I needed to go.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Reply
Map
View

Click here to load this message in the networking platform