Jump to content

Recommended Posts

Posted

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?

Posted

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]

Posted

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 *

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...