Jump to content

Path Problems


Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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