I realise I have been post this thread but I can't find my old thread using search button. How I can make new directory using VB?
Printable View
I realise I have been post this thread but I can't find my old thread using search button. How I can make new directory using VB?
To create on folder (without subfolders) use MkDir function - you will still need to check if it exsits first.
There is more robust api way but this will get you started.
Do I need the API to use this function?
MkDir "C:\Project"
As always best way to find out is actually run it. ;) But read my previous post once again.
Ok.. I work.. How do I set this function is nothing once I not used it..
I'm afraid I don't understand what you mean. :confused: Sorry.
Never mind..
I thought I can do something like this
Set MkDir = nothing
MkDir (just any other function/statement) is not a variable so you cannot really reset it.