PCI Posted February 11, 2011 Posted February 11, 2011 Good day everyone.My first post I've read many pages and thread so far , and i could not find a help with Dircopy functionI Have a folder to copy to another backup folder folder contains files and subdirectories.Some of the files are hidden or read only.In a batch file i'm using right now : xcopy c:\Myfiles\documents\*.* c:\backup\documents /e /v /i /R /Yand always worked fine from command promptDirCopy("\Myfiles\documents\*.* ","c:\backup\documents", 1)I'm missing something ?Is there any flags that i could add to do the same as xcopy in batch command above ?Any input or guidelines will be most appreciate.Thank you Mods for this great forums My Support and donations is in my thoughts.
Varian Posted February 11, 2011 Posted February 11, 2011 Your syntax is suspect...DirCopy("FullPathToMyfiles\documents", "c:\backup\documents", 1)
PCI Posted February 11, 2011 Author Posted February 11, 2011 Your syntax is suspect...DirCopy("FullPathToMyfiles\documents", "c:\backup\documents", 1) Thank you for the response , i will try it out and keep you posted. Regards !
PCI Posted February 16, 2011 Author Posted February 16, 2011 Thank you for the response , i will try it out and keep you posted.Regards !My Apologies ,for not replying sooner .It worked fine just fine.Thank you so much !RegardsMod Please close this thread as my answer was fullfilled.Thank you
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now