Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


copy folder from one location to other location

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,59833
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> copy folder from one location to other location
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 copy folder from one location to other location - 5/5/2008 7:36:15 AM   
  lazydev

 

Posts: 21
Score: 0
Joined: 2/21/2008
Status: offline
I need syntax or command for copying a folder from one system to other system .Where both the systems are using windows server 2003.

If you have any script or atleast tell me the command .I have been searching for it all the day .But nothing worked.So please guide me.
If you have any scripts share with me.

Thanx
 
 
Post #: 1
 
 RE: copy folder from one location to other location - 5/5/2008 7:41:45 AM   
  dm_4ever


Posts: 2432
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
Look for:
FileSystemObject
CopyFolder

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to lazydev)
 
 
Post #: 2
 
 RE: copy folder from one location to other location - 5/7/2008 12:48:24 AM   
  Country73


Posts: 712
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
object.CopyFile ( source, destination[, overwrite] )

SET oFS = CREATEOBJECT("Scripting.FileSystemObject")
IF oFS.FileExists("\\<server>\<share>\<file>")THEN
    oFS.CopyFile "\\<server>\<share>\<file>", "\\<destinationServer>\<share>\",FALSE
END IF
SET oFS = NOTHING

Copies one file, if exists, to a new location. DOES NOT overwrite if the file already exists in new location.
The default for overwriting the file is TRUE.

(in reply to lazydev)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> copy folder from one location to other location Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts