Create VBscript to copy folder to network Drive


  1. Posts : 21
    Windows 7
       #1

    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 Computer


  2. Posts : 571
    Windows 7 Home Premium x64
       #2

    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 Computer


  3. Posts : 1,814
    XP / Win7 x64 Pro
       #3

    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 Computer


  4. Posts : 21
    Windows 7
    Thread Starter
       #4

    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


  5. Posts : 51,384
    Windows 11 Workstation x64
       #5

    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 Computers


  6. Posts : 1,814
    XP / Win7 x64 Pro
       #6

    sebbie said:
    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


  7. Posts : 21
    Windows 7
    Thread Starter
       #7

    FliGi7 said:
    sebbie said:
    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


  8. Posts : 20
    Windows 7 Professional x86
       #8

    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


  9. Posts : 1,814
    XP / Win7 x64 Pro
       #9

    sebbie said:
    FliGi7 said:
    sebbie said:
    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


  10. Posts : 21
    Windows 7
    Thread Starter
       #10

    I have downloaded the cobian backup and going use that as backup the folder how i want cheers.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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:04.
Find Us