Jump to content
Sign in to follow this  
PCI

DirCopy with hidden read only system files

Recommended Posts

PCI

Good day everyone.

My first post :)

I've read many pages and thread so far , and i could not find a help with Dircopy function

I 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 /Y

and always worked fine from command prompt

DirCopy("\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.

Share this post


Link to post
Share on other sites
Varian

Your syntax is suspect...

DirCopy("FullPathToMyfiles\documents", "c:\backup\documents", 1)

Share this post


Link to post
Share on other sites
PCI

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 !

Share this post


Link to post
Share on other sites
PCI

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 !

Regards

Mod Please close this thread as my answer was fullfilled.

Thank you

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.