Windows 7 Forums


Windows 7: Create VBscript to copy folder to network Drive

07 Jan 2011   #1

Windows 7
 
 
Create VBscript to copy folder to network Drive

Hi

I have VBscript to copy folders or files to other location. But this doesn't seem to run on windows 7 machine. Any help in why this might be.

Reason for this is we want take backup of just one particular folder every month on C drive to network drive. Now can set backup to do this but way it does it you have drill down to find the folder.



So if anyone has or knows a script to copy a folder over to network drive and overwrite the current one would be helpful.

Cheers
My System SpecsSystem Spec

07 Jan 2011   #2

Windows 7 Home Premium x64
Osceola, WI
 
 

sebbie:

I don't know anything about scripts, but you could try SynchBack or SynchToy; both of these utilities can be scheduled to run when you want, as often as you want.

Personally, I use SynchBack; it's a very flexible synchronization/backup tool and works just fine under Windows 7.

SynchBack: http://www.2brightsparks.com/downloads.html
SynchToy: https://www.microsoft.com/downloads/...displaylang=en
My System SpecsSystem Spec
07 Jan 2011   #3

XP / Win7 x64 Pro
 
 

You could also use xcopy in a batch file that is run from task scheduler if you don't want to install extra software to do this...

xcopy c:\folder x:\folder /O /X /E /H /K

The above retains all file permissions, audit capabilities, and hidden/system files and will copy any subfolders as well, whether empty or not.

Task Scheduler - Create New Task
My System SpecsSystem Spec
.


12 Jan 2011   #4

Windows 7
 
 

Neither of knows work. Sync Toy you can't do sechudle you have to run it each time manaully the other one was for Windows 2000.

The batch file didn't work at all just did nothing the same as the VBS script i have which has worked fine Windows XP machines.

Any more help would be great.
My System SpecsSystem Spec
12 Jan 2011   #5

Windows 8 Pro
Standish, Lancashire, England
 
 

If you're only looking at backing a folder up then cobian backup should do the job for you (we use it for the site servers) - Cobian Backup
My System SpecsSystem Spec
12 Jan 2011   #6

XP / Win7 x64 Pro
 
 

Quote   Quote: Originally Posted by sebbie View Post
Neither of knows work. Sync Toy you can't do sechudle you have to run it each time manaully the other one was for Windows 2000.

The batch file didn't work at all just did nothing the same as the VBS script i have which has worked fine Windows XP machines.

Any more help would be great.
Did you try my suggestion above your post?
My System SpecsSystem Spec
13 Jan 2011   #7

Windows 7
 
 

Quote   Quote: Originally Posted by FliGi7 View Post
Quote   Quote: Originally Posted by sebbie View Post
Neither of knows work. Sync Toy you can't do sechudle you have to run it each time manaully the other one was for Windows 2000.

The batch file didn't work at all just did nothing the same as the VBS script i have which has worked fine Windows XP machines.

Any more help would be great.
Did you try my suggestion above your post?

Yes didn't work
My System SpecsSystem Spec
13 Jan 2011   #8

Windows 7 Professional x86
 
 

Could it be that Windows 7 has a different path to the folders?

I wrote alittle VB to move files around and it seemed to have done it just fine on Windows 7. It is in no way shape or form as complicated as yours I'm sure.

Does the object for copying folders differ between XP and 7? Maybe when the script tries to run on a 7 machine, it's not using the correct FileSystemObject or whatever it would be.

That or because 7 has such a different setup for permissions, and thats where the script fails?
My System SpecsSystem Spec
13 Jan 2011   #9

XP / Win7 x64 Pro
 
 

Quote   Quote: Originally Posted by sebbie View Post
Quote   Quote: Originally Posted by FliGi7 View Post
Quote   Quote: Originally Posted by sebbie View Post
Neither of knows work. Sync Toy you can't do sechudle you have to run it each time manaully the other one was for Windows 2000.

The batch file didn't work at all just did nothing the same as the VBS script i have which has worked fine Windows XP machines.

Any more help would be great.
Did you try my suggestion above your post?

Yes didn't work
That command should work. Could you explain what you did and how it didn't work?
My System SpecsSystem Spec
14 Jan 2011   #10

Windows 7
 
 

I have downloaded the cobian backup and going use that as backup the folder how i want cheers.
My System SpecsSystem Spec
Reply

 Create VBscript to copy folder to network Drive problems?



Thread Tools



Similar help and support threads for: Create VBscript to copy folder to network Drive
Thread Forum
Cannot open PDFs from a specific network folder / must copy to desktop Network & Sharing
Network Folder Shortcut - Create Tutorials
Unable to Create Folder on Mapped Drive Network & Sharing
Solved Can't create backup copy of my hard drive Backup and Restore
can't create new folder on one drive General Discussion


All times are GMT -5. The time now is 10:07 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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