Jump to content
Sign in to follow this  
wschildr

Path Problems

Recommended Posts

wschildr

Ok, I am trying to copy a file useing FileInstall but need to install into various file names bases on user logon. Here is what I have that does not work...... FileInstall("C:\MimsCounty.ini", "C:\Documents and Settings\" & @UserName "\windows") . What I need to do is to install the file into the documents and settinsg folder to a users network folder and then into the windows folder. Any help would be appreciated.

Share this post


Link to post
Share on other sites
Swift

Another tip: when using a string, and including a variable or macro, and continuing the string, you will need the & sign, on both sides. Some examples:

$String[1] = "I Am A String " & @Username
$String[2] = "I Am A Second String "&@CRLF&" The first string is "&@CRLF& $String1
$String[3] = "String " & $String1 & "Second String... "& $String2 & " STRINGS!"

For $i=1 To 3
MsgBox(0, "", $String[$i]
Next

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.