Wait, I used DEL.
I typed
"DEL C:\FTPROOT"
And it said..
Could not find "C:\mikeprogs\prog4\FTPROOT"
Why is it putting mikeprogs\prog4 in front of it? How can I prevent this?
Printable View
Wait, I used DEL.
I typed
"DEL C:\FTPROOT"
And it said..
Could not find "C:\mikeprogs\prog4\FTPROOT"
Why is it putting mikeprogs\prog4 in front of it? How can I prevent this?
You didn't try to enter that in your system() program did you?
Forget system() as I said before, it is a crude bodge, (there are a list of reasons why you should not use it in the FAQ). You use RemoveDirectory instead of system()! You have VC, open the help and look up the routine there.
Yeah but, why is it putting that? All I need is to erase that and I basically accomplished what I set out to do.
DEL *.*
This will delete all files in the current directory, be careful what you delete.
So type "DEL *C:\FTPROOT*
and if you are putting delete commands inside system remember you need 2 backslashes....
doDOS("DEL C:\\and so on...