Backing up folder

D

dan

I want to backup folder "C:\Documents and Settings\dan\Price" as
"C:\MyBackup\PriceMMDDYY"
Could you help me script a Macro to do this.
Thanks
 
G

Guest

You can use this macro:

Dim str As String
str = "C:\Mybackup\Price" & Format(Date, "mmddyy")
MkDir (str)
 
D

dan

Thank you, Muhammed
I meant to backup folder "C:\Documents and Settings\dan\Price" with
all its contents as PriceMMDDYY in "C:\MyBackup\".
Any idea?
 
D

dan

Hi Ron
This is great help. I will use the site more often.
Thank you very much
Best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top