Quote Originally Posted by salmawy View Post
Thank you very much it worked for me
also can you help me to copy fiiles from a directory to a directory and hide it and thx u very much
I can't give you the answer, but I'll lead you in the right direction.

The System.IO namespace contains the File Class that will let you manipulate files.

Read up on the documentation and you'll get an idea on what you need to do.

But basically, you'll want to loop through each file in the directory and call the appropriate method to copy or move them to another directory.

Also, don't forget to use Google.