CyberjoFrank Posted January 20, 2016 Share Posted January 20, 2016 I am totally new to this Forum so please forgive me if I am asking something that may have already been answered. Project at hand: Create a simple backup script that will capture some imputed variable information then write it to a directory. Challenges so far: The syntax as far as I can tell will allow me to write variables with the filecreatedir however I need the variables to be separated with a character such as a period,dash or an underscore. Example: directory created should look something like this: N:\#user_backups\Today's Date.Variable1.Variable2 So, I am trying to incorporate a Date value followed by Variable1=LastName then Variable2=FirstName End result should look something like this: N:\USER_BACKUPS\20160119.Calderon.Frank What I have so far: DirCreate("N:\#User_Backups\"&$Lastname &$FirstName) Not sure how to add date in similar format as shown above or how to separate all by character(. Or - or _) Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
JohnOne Posted January 20, 2016 Share Posted January 20, 2016 DirCreate("N:\#User_Backups\"& @year & @mon & @mday & "." & $Lastname & "." & $FirstName) Something like that. CyberjoFrank 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
CyberjoFrank Posted January 20, 2016 Author Share Posted January 20, 2016 Thank you so much for your help. It worked perfectly! On to my next challenge. Link to comment Share on other sites More sharing options...
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