Create VBscript to copy folder to network Drive

sebbie

New member
Local time
7:29 AM
Messages
21
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 Computer

OS
Windows 7

My Computer

Computer Manufacturer/Model Number
OEM - Me
OS
Windows 7 Home Premium x64
CPU
AMD Phenom II X6 1600T
Motherboard
GigaByte GZ-990FXA-UD3
Memory
16GB PC3-10700 (1342MHz)
Graphics Card(s)
ATI Radeon 5770 HD (x2) CrossFire
Sound Card
On-board RealTek chipset
Monitor(s) Displays
3x Hanns-G 1920x1080 Monitors
Screen Resolution
3x Hanns-G 1920x1080 Monitors
Hard Drives
Intel 25-V SSD 40GB: 218 MB/s AT: 0.1ms
Intel X-25M SSD 80GB: 230MB/s AT: 0.1ms
Seagate 750GB: 133 MB/s AT: 13ms (perpendicular storage)
Buffalo HD-PCTU3 1TB External drive
PSU
OCZ Stealth X Stream 750W
Case
Cheap (unknown)
Cooling
Stock
Keyboard
HP USB
Mouse
LogiTech USB
Internet Speed
1.5 Mbps - Slow - At the tail-end of a rural network
Other Info
Printer: Epson Stylus C-84
Scanner: HP 3500C Flatbed
DVD-RW: Plextor
DVD-ROM: Unknown
WEI: 7.4
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.

http://www.sevenforums.com/tutorials/12444-task-scheduler-create-new-task.html
 

My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 Computer

OS
Windows 7
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 Computer

Computer type
PC/Desktop
OS
Windows 11
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 Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 Computer

OS
Windows 7
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 Computer

Computer Manufacturer/Model Number
Dell E6510
OS
Windows 7 Professional x86
CPU
Intel(R) Core(TM) i5 M 520 @ 2.40GHz
Memory
4.0GB DDR3-1333
Graphics Card(s)
NVIDIA NVS 3100M 512MB
Sound Card
NVIDIA HD Audio
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 Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
I have downloaded the cobian backup and going use that as backup the folder how i want cheers.
 

My Computer

OS
Windows 7
Back
Top