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

Input Between Strings

$
0
0

Hey quick question!

I am trying to input a folder name that will be inputed by the user when the script starts to obtain the correct location for the file.

 

For example

 

$Input = InputBox("File","Please enter the Folder Name")
$File2 = "C:\Program Files (x86)\$Input\Examples\_ReadMe_.txt"

 

In this example I would input AutoIt3 if I was the user and then my input would be stored in $Input which would be used in the file location. However, I can't seem to get it to work. I'm not sure how to declare variables between two different strings.

 

I've tried doing this.

 

$File2 = "C:\Program Files (x86)\" + $Input + "\Examples\_ReadMe_.txt"

 

But that didn't work either! Sorry I'm still fairly new to AutoIt, so any help would be great. Thanks! Let me know if you need more info also!

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



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