adamsj13 Posted October 18, 2005 Posted October 18, 2005 Hello all, What I am trying to create is a script that will back up data off a PC to a server. What I'm trying to do is dircreate with a input box so i create a different directory for each PC on the server. How can I do that?
Skruge Posted October 19, 2005 Posted October 19, 2005 What information do you wish to capture with an inputbox? If the script will be run on the PC's to be backed up, you can use the @ComputerName macro to identify the system. DirCreate("\\ServerName\Share\" & @ComputerName) [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]
/dev/null Posted October 19, 2005 Posted October 19, 2005 Hello all, What I am trying to create is a script that will back up data off a PC to a server. What I'm trying to do is dircreate with a input box so i create a different directory for each PC on the server. How can I do that?maybe this one:$path_to_backup_server = "x:\backup\" $directory = InputBox("Backup Directory", "Enter your backup directory:") if NOT FileExists($directory) then if not DirCreate($path_to_backup_server & $directory) then ; Your error handling code here endif endifCheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now