Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


replace file with another file

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> replace file with another file
  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 >>
 replace file with another file - 12/23/2003 9:16:45 AM   
  moogeboo

 

Posts: 1
Score: 0
Joined: 12/23/2003
From: USA
Status: offline
hi,

i'm pretty new to vb scripting, and i wanted to write a script that seems pretty simple, but am unsure as to how to proceed. what i want to do is:

check to see if a certain file exist (c:\program files\file.txt)
if it exists, rename it to file.bak, then replace it with an updated file @ (H:\newfiles\updatedfile.txt.

that's all. seems pretty easy, but...am not sure as how to go about this...any ideas would be appreciated!

thanks!
 
 
Post #: 1
 
 
 
  

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 >> replace file with another file 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