ileandros Posted April 9, 2012 Posted April 9, 2012 Hello, Until now i was using this script to create a path $sPath = StringReplace(@DesktopDir, "\AutoIt3.exe", "\") $aFiles = _FileListToArray($sPath, "*.*", 1) For $i = 1 To $aFiles[0] GUICtrlSetData($List1, $aFiles[$i]) Next What can i do in case i want the Path to be something like this???? C:\Program Files\Java\jre6\bin I feel nothing.It feels great.
somdcomputerguy Posted April 9, 2012 Posted April 9, 2012 $RestOfPath = "Javajre6bin" ConsoleWrite(@ProgramsDir & $RestOfPath & @LF) - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
ileandros Posted April 9, 2012 Author Posted April 9, 2012 (edited) Bruce actually i just did it liek this and it works fine $sPath = "C:Program FilesJavajre6bin" $aFiles = _FileListToArray($sPath, "*.*", 1) Thanks anyway Edited April 9, 2012 by ileandros I feel nothing.It feels great.
Opie Posted April 9, 2012 Posted April 9, 2012 ileandro, you will want to use @programsdir if you are distributing the script. Not all program files directories are c;/program files/x You have to take into account the Home Drive and 64 bit systems. So @programsdir is a sure fire way to find c:/program files
ileandros Posted April 9, 2012 Author Posted April 9, 2012 Yes i know it but i dont want just to navigate the program files i want an other folder inside the program files. The way im doing it works fine. thanks I feel nothing.It feels great.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now