Quote Originally Posted by huxley View Post
sir thx for the code it works
just one thing., if i change the curdir to D$ it doesnt change the directory. its still on the drive C
CurDir is a VB Function.

Syntax: CurDir[(drive)]
The optional drive argument is a string expression that specifies an existing drive. If no drive is specified or if drive is a zero-length string (""), CurDir returns the path for the current drive.


If you want to hard code in the drive and path then just change the SubDir string to what you want. i.e. the root of drive D:, SubDir = "D:\*.*"