Can anyone help me on some code? I cant actually work our how to do it, and nothing on the forums seems to suit.
My problem involves checking if a folder exists, and the copying of an entire directory.
The psuedo code is:
Anybody got any ideas? Thanks for your replies.
My problem involves checking if a folder exists, and the copying of an entire directory.
The psuedo code is:
Code:
1. Check if a directory exists. [B][I]"C:\Test\" as an example[/I][/B]
2. (If) the directory exists, delete it.
3. Create a new directory [B][I]"C:\Test\" so you now have a blank directory[/I][/B]
4. If the directory DOES NOT exist create a new directory. [B][I]"C:\Test\"[/I][/B]
5. (End If)
6. Copy all files and subfolders from another directory to [B][I]"C:\Test\"[/I][/B]
Anybody got any ideas? Thanks for your replies.