Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Automatic copy files to server

06 Feb 2012   #1

Windows 7 Professional 64bit
 
 
Automatic copy files to server

I am attempting to place a backup of my documents and outlook files to my domain server. I do this every Friday.

Everything was fine in Windows XP, we would just copy the documents folder and overwrite the one on the server. This has become a problem in windows 7.

When attempting to copy, I get access denied, I have to constantly choose to overwrite files, or it just doesn't work at all.

Is there a better method to drop my files on the server? I want access to them without having to use a utility.

My System SpecsSystem Spec
.

06 Feb 2012   #2

Windows 7 Pro x64 SP1
 
 

Quote   Quote: Originally Posted by jtoney View Post
I am attempting to place a backup of my documents and outlook files to my domain server. I do this every Friday.

Everything was fine in Windows XP, we would just copy the documents folder and overwrite the one on the server. This has become a problem in windows 7.

When attempting to copy, I get access denied, I have to constantly choose to overwrite files, or it just doesn't work at all.

Is there a better method to drop my files on the server? I want access to them without having to use a utility.
Welcome to the windows 7 forums Jtoney

One way that I do that is to use the xcopy with the /m command, which will copy and replace each of the changed and new files on your target directory.

xcopy "d:\documents\*.*" "O:\toshiv\mydocs" /s/m/y/c/h/r
xcopy "d:\xfer\*.*" "O:\toshiv\downloads" /s/m/y/c/h/r

this copies all of the files that either have changed or new from my d drive directories to my servers O: drive in those directories. I created a batch file and then created a shortcut to it and then set the shortcut to run as administrator.

It works for me.

Rich

Rich
My System SpecsSystem Spec
06 Feb 2012   #3

Windows 7 Professional 64bit
 
 

The person doing the backup is not skilled and won't want to do a command like this. Is there a simpler method?
My System SpecsSystem Spec
.


06 Feb 2012   #4

Windows 7 Pro x64 SP1
 
 

Quote   Quote: Originally Posted by jtoney View Post
The person doing the backup is not skilled and won't want to do a command like this. Is there a simpler method?
Create the batch file on their computer and then create a shortcut to it.

This way all they have to do is to click the shortcut and it will do it's thing.

should be pretty simple.

Rich
My System SpecsSystem Spec
06 Feb 2012   #5

Windows 7 Professional 64bit
 
 

Will the above command copy everything? Photos, music, documents, outlook, etc?
My System SpecsSystem Spec
06 Feb 2012   #6

XP / Win7 x64 Pro
 
 

How are you copying the files now?
My System SpecsSystem Spec
06 Feb 2012   #7

Windows 7 Ultimate x64 SP1
 
 

If you want to simplify the process, use SyncToy. It's free, and gives you plenty of options on how to move the files.
My System SpecsSystem Spec
06 Feb 2012   #8

Windows 7 Pro x64 SP1
 
 

Quote   Quote: Originally Posted by jtoney View Post
Will the above command copy everything? Photos, music, documents, outlook, etc?
It will copy most anything.
Here is the info from

xcopy /?

Copies files and directory trees.
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
[/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B]
[/EXCLUDE:file1[+file2][+file3]...]
source Specifies the file(s) to copy.
destination Specifies the location and/or name of new files.
/A Copies only files with the archive attribute set,
doesn't change the attribute.
/M Copies only files with the archive attribute set,
turns off the archive attribute.
/D:m-d-y Copies files changed on or after the specified date.
If no date is given, copies only those files whose
source time is newer than the destination time.
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.
/P Prompts you before creating each destination file.
/S Copies directories and subdirectories except empty ones.
/E Copies directories and subdirectories, including empty ones.
Same as /S /E. May be used to modify /T.
/V Verifies the size of each new file.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If destination does not exist and copying more than one file,
assumes that destination must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file names while copying.
/L Displays files that would be copied.
/G Allows the copying of encrypted files to destination that does
not support encryption.
/H Copies hidden and system files also.
/R Overwrites read-only files.
/T Creates directory structure, but does not copy files. Does not
include empty directories or subdirectories. /T /E includes
empty directories and subdirectories.
/U Copies only files that already exist in destination.
/K Copies attributes. Normal Xcopy will reset read-only attributes.
/N Copies using the generated short names.
/O Copies file ownership and ACL information.
/X Copies file audit settings (implies /O).
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
/Z Copies networked files in restartable mode.
/B Copies the Symbolic Link itself versus the target of the link.
/J Copies using unbuffered I/O. Recommended for very large files.
The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.


Rich
My System SpecsSystem Spec
Reply

 Automatic copy files to server




Thread Tools



Similar help and support threads for2: Automatic copy files to server
Thread Forum
How do I make Outlook 2007 leave a copy of my messages on the server? Microsoft Office
How to set-up automatic deleting files on Win7? Performance & Maintenance
Windows Automatic update files Windows Updates & Activation
Is there an automatic temp files clean-out process in Windows 7? Performance & Maintenance
Windows Mail doesn't leave copy on gmail server Browsers & Mail
How to disable automatic opening downloaded files? Browsers & Mail

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:20 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33