Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Appending a value into a string

$
0
0

I got my valid server id for a site called $SiteID by using this code:

If $iIndex <> -1 Then         $SiteID = $aListing[$iIndex][1]&"-FS01"  ; append server ID to get the valid local server name Else

Now I want to take that and append it into this string for a filecopy command:

FileCopy("\\ <$SiteID goes here> \KLSHARE\PkgInst\NetAgent_10.0.3361_KES_10.1.0.867\setup.exe", "C:\", 1)

is that possible? This gives me an invalid argument error:

FileCopy("\\"&SiteID,"\KLSHARE\PkgInst\NetAgent_10.0.3361_KES_10.1.0.867\setup.exe", "C:\", 1)

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>