Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


whats wrong with this command?

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> whats wrong with this command?
  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 >>
 whats wrong with this command? - 1/19/2005 9:09:09 PM   
  diss-e

 

Posts: 1
Score: 0
Joined: 1/19/2005
From:
Status: offline
hi guys,

I have been working on a script for ms-dos.Its my first one. The purpose of the script is that it has to backup the Registry files (.reg) of our servers. The backups have to be saved at a external hard disk that is attached to my workstation. I know how to backup the .reg file of my own my from a command-line, but not how to backup the .reg file of a server from my pc. I have wrote this command:

if not exist "d:\servers\paylinkufj\Registry" mkdir "d:\servers\paylinkufj\Registry"

regedit /e //paylinkufj "d:\servers\paylinkufj\Registry\regbackup.reg"

rename "d:\servers\paylinkufj\Registry\regbackup.reg" "paylinkufj.reg"


d:\ is the external hard disk
paylinkufj is the name of the server

The command that i wrote doesnt works. And it doesnt shows any error when i activate it?

Could you tell me whats from with it and if write another for me...

thanks in advane...

Manj

p.s. u can also mail me...
 
 
Post #: 1
 
 Re: whats wrong with this command? - 1/19/2005 9:58:31 PM   
  Zifter


Posts: 318
Score: 0
Joined: 1/5/2005
From: Belgium
Status: offline
The code you provided isn't VBScript.
In VBScript it would be something like this:
      
Note: The line objFso.CreateFolder "d:\servers\paylinkufj\Registry" only works if the folders "d:\servers" and "d:\servers\paylinkufj" already exist

HTH

(in reply to diss-e)
 
 
Post #: 2
 
 
 
  

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 >> whats wrong with this command? 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