If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Need a BAT or script to copy a folder from a local drive to the se
Hello,
Local machine OS = WinXP, SP2 Server OS= Win2K I have to create a BAT or script file that will copy ONE folder (and ALL of the files within it) to the server. BTW, which would be better, a BAT or a script? The paths for these will not change, with the exception that the new folder on the server will have an underscore and the current date (in this format 05-03-06) appended to the folder name from which came from the C: drive. Here is the path for the C: drive folder: C:\BB Hence the folder name is BB. Here is the intended path for the copied BB folder to go to: X:\Data\Backup\Local_Drive Now as I said earlier, I need the BAT or script to make a new folder on the server path X:\Data\Bayou_Brule\Local_Drive path named: BB_05-03-06 (The appended portion would be the underscore and the current date) If the format of the current date needs to be different to make the BAT or script work, that's OK with me. And is it possible to to make the BAT or script run everyday WHEN I log off? Or I should I manually execute the BAT or srcipt with a shortcut? If there is anything info missing that you need to know, let me know and I will respond immediately. Thanks, Phil. |
Ads |
#2
|
|||
|
|||
Need a BAT or script to copy a folder from a local drive to the se
See http://msdn.microsoft.com/scripting Download the documentation for VB Script and the Windows Script Host. You're primarily interested in the FileSystemObject. Note: Most current antivirus products consider script access to the file system as a potentially malicious activity.
-- Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com -------------------------------- Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm -------------------------------- Please reply only to the newsgroup so all may benefit. Unsolicited e-mail is not answered. "Phil" wrote in message ... Hello, Local machine OS = WinXP, SP2 Server OS= Win2K I have to create a BAT or script file that will copy ONE folder (and ALL of the files within it) to the server. BTW, which would be better, a BAT or a script? The paths for these will not change, with the exception that the new folder on the server will have an underscore and the current date (in this format 05-03-06) appended to the folder name from which came from the C: drive. Here is the path for the C: drive folder: C:\BB Hence the folder name is BB. Here is the intended path for the copied BB folder to go to: X:\Data\Backup\Local_Drive Now as I said earlier, I need the BAT or script to make a new folder on the server path X:\Data\Bayou_Brule\Local_Drive path named: BB_05-03-06 (The appended portion would be the underscore and the current date) If the format of the current date needs to be different to make the BAT or script work, that's OK with me. And is it possible to to make the BAT or script run everyday WHEN I log off? Or I should I manually execute the BAT or srcipt with a shortcut? If there is anything info missing that you need to know, let me know and I will respond immediately. Thanks, Phil. |
#3
|
|||
|
|||
Need a BAT or script to copy a folder from a local drive to th
Doug,
Thanks for your reply. I tried the first link you attached (for scripting) and it didn't work. I finally was able to get to the scripting page (http://msdn.microsoft.com/library/de...scriptinga.asp) and read through it a bit, and am realizing that it is a little more in-depth than I have the time to investigate. So unfortunately, I can't utilize that particular resource at this time, due to my time constraints. But I do apprieciate your repsonse, and maybe later when I have some spare time I will try and give it a go. However, if anyone would like to offer some more input on either writing a BAT or script, I WOULD GREATLY APPRIECIATE IT! Regards, Phil. "Doug Knox MS-MVP" wrote: See http://msdn.microsoft.com/scripting Download the documentation for VB Script and the Windows Script Host. You're primarily interested in the FileSystemObject. Note: Most current antivirus products consider script access to the file system as a potentially malicious activity. -- Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com -------------------------------- Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm -------------------------------- Please reply only to the newsgroup so all may benefit. Unsolicited e-mail is not answered. "Phil" wrote in message ... Hello, Local machine OS = WinXP, SP2 Server OS= Win2K I have to create a BAT or script file that will copy ONE folder (and ALL of the files within it) to the server. BTW, which would be better, a BAT or a script? The paths for these will not change, with the exception that the new folder on the server will have an underscore and the current date (in this format 05-03-06) appended to the folder name from which came from the C: drive. Here is the path for the C: drive folder: C:\BB Hence the folder name is BB. Here is the intended path for the copied BB folder to go to: X:\Data\Backup\Local_Drive Now as I said earlier, I need the BAT or script to make a new folder on the server path X:\Data\Bayou_Brule\Local_Drive path named: BB_05-03-06 (The appended portion would be the underscore and the current date) If the format of the current date needs to be different to make the BAT or script work, that's OK with me. And is it possible to to make the BAT or script run everyday WHEN I log off? Or I should I manually execute the BAT or srcipt with a shortcut? If there is anything info missing that you need to know, let me know and I will respond immediately. Thanks, Phil. |
#4
|
|||
|
|||
Need a BAT or script to copy a folder from a local drive to the se
Phil wrote :
I have to create a BAT or script file that will copy ONE folder (and ALL of the files within it) to the server. BTW, which would be better, a BAT or a script? The paths for these will not change, with the exception that the new folder on the server will have an underscore and the current date (in this format 05-03-06) appended to the folder name from which came from the C: drive. Here is the path for the C: drive folder: C:\BB Here is the intended path for the copied BB folder to go to: X:\Data\Backup\Local_Drive Now as I said earlier, I need the BAT or script to make a new folder on the server path X:\Data\Bayou_Brule\Local_Drive path named: BB_05-03-06 (The appended portion would be the underscore and the current date) If the format of the current date needs to be different to make the BAT or script work, that's OK with me. And is it possible to to make the BAT or script run everyday WHEN I log off? Or I should I manually execute the BAT or srcipt with a shortcut? xcopy c:\bb X:\Data\Backup\Local_Drive\BB_%DATE% /e /i /q /h /r /y see "xcopy /?" in a command prompt for details of the swithces used above. To execute the BAT when you log off, add it to the logoff script in the local computers Group Policy. Click Start-Run and type gpedit.msc and click Ok. See this link for details re logoff script: http://www.snugserver.com/phpbb2/vie...asc&highlight= /klaus |
#5
|
|||
|
|||
Need a BAT or script to copy a folder from a local drive to these
Phil wrote: Hello, Local machine OS = WinXP, SP2 Server OS= Win2K I have to create a BAT or script file that will copy ONE folder (and ALL of the files within it) to the server. BTW, which would be better, a BAT or a script? The paths for these will not change, with the exception that the new folder on the server will have an underscore and the current date (in this format 05-03-06) appended to the folder name from which came from the C: drive. Here is the path for the C: drive folder: C:\BB Hence the folder name is BB. Here is the intended path for the copied BB folder to go to: X:\Data\Backup\Local_Drive Now as I said earlier, I need the BAT or script to make a new folder on the server path X:\Data\Bayou_Brule\Local_Drive path named: BB_05-03-06 (The appended portion would be the underscore and the current date) If the format of the current date needs to be different to make the BAT or script work, that's OK with me. And is it possible to to make the BAT or script run everyday WHEN I log off? Or I should I manually execute the BAT or srcipt with a shortcut? If there is anything info missing that you need to know, let me know and I will respond immediately. Thanks, Phil. Why reinvent the wheel? A free program that can do that is Karen's Replicator available at karenware.com I use it to keep files backed up and current on three computers on my home network. You can customize it easily. -- Gerald Ross Cochran, GA Whatever temperature a room is, it's always room temperature. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing Drive Letters | Bill Wittmer | Windows XP Help and Support | 9 | April 9th 06 08:40 PM |
How to remove sorting | Peter Afonin | General XP issues or comments | 13 | February 13th 06 07:48 AM |
From error to missing system file | JIJI | General XP issues or comments | 4 | August 8th 05 05:33 PM |
hard drive | angel | Windows XP Help and Support | 31 | July 31st 05 05:06 AM |
Winows crash | Joseph | Performance and Maintainance of XP | 7 | September 1st 04 01:47 AM |