A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Customizing Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Need a BAT or script to copy a folder from a local drive to the se



 
 
Thread Tools Display Modes
  #1  
Old May 4th 06, 03:17 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 4th 06, 03:46 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 4th 06, 04:11 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 4th 06, 06:34 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 7th 06, 09:42 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

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






All times are GMT +1. The time now is 05:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.