Jump to content
Sign in to follow this  
adamsj13

Help!

Recommended Posts

adamsj13

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?

Share this post


Link to post
Share on other sites
Skruge

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]

Share this post


Link to post
Share on other sites
/dev/null

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 
endif

Cheers

Kurt


__________________________________________________________(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 *

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.