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
jtoney

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
richnrockville

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
jtoney

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
richnrockville

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
jtoney

Windows 7 Professional 64bit
 
 

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

XP / Win7 x64 Pro
 
 

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

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
richnrockville

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
Thread Forum
Volume Shadow Copy - Manual or Automatic Startup?
My new Windows 7 computer came with Volume Shadow Copy set to Manual Startup. This is seen when running the Services utility. When would one want Manual versus Automatic Startup? I don't know if it would affect the following, but the Event Viewer has been flagging an occasional NTFS System...
General Discussion
Suggestions for free automatic folder monitor and file copy app
Hello all- I am looking for a small piece that will do the following: 1. Monitor folder A 2. Copy any new folders or files to Folder B 3. Run at start-up and at all times 4. Preferably real-time or at least once an hour. 5. Preferably only make the copy once, even the file is deleted from...
General Discussion
How do I make Outlook 2007 leave a copy of my messages on the server?
How do I make Outlook 2007 leave a copy of my messages on the server and after x days remove it?
Microsoft Office
How to set-up automatic deleting files on Win7?
I am trying to figure out how to set up automatic deleting files from specific folders. I know there is a 3rd party software, but was wondering if I can do it directly thru Windows 7 options?
Performance & Maintenance
Windows Automatic update files
Hello, are the automatic update files in my disk? thanks, RR
Windows Updates & Activation


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 06:33.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App