Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling folders Please help
#1
I have two drives c and h drive. I have a folder called timsdocuments in one of the drives. I want the macro to search both my drives find this folder and delete it for me. Im just playing around with macros rightnow and im kind of new. Basically, im trying to make something to delete my junk every month when it piles up. I want the macro to search any drive on my computer to find that folder timsdocuments and delete it. Can you Paste the code on how to go about doing this ?
#2
Code:
Copy      Help
del "c:\some folder\timsdocuments"
del "h:\some folder\timsdocuments"

or

Code:
Copy      Help
del "c:\some folder\timsdocuments"; err
del "h:\some folder\timsdocuments"; err


Forum Jump:


Users browsing this thread: 1 Guest(s)