Sign in to follow this  
Followers 0
CyberjoFrank

Creating a Directory passing variable information

3 posts in this topic

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.

 

 

 

 

 

Share this post


Link to post
Share on other sites



Thank you so much for your help. It worked perfectly!  On to my next challenge.

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  
Followers 0