myspacee Posted January 20, 2009 Share Posted January 20, 2009 hello to all, have nice script that works with given path form command line. There is any way to use _PathSplit with given variable ? (text format) in my case given path can be : c:\windows\*.txt any suggestion ? thank you, m. Link to comment Share on other sites More sharing options...
Valuater Posted January 20, 2009 Share Posted January 20, 2009 Maybe... $String = "c:\windows\*.txt" $Split = StringSplit($String, "\") MsgBox(4096, "File", $Split[($split[0])]) 8) Link to comment Share on other sites More sharing options...
FireFox Posted January 20, 2009 Share Posted January 20, 2009 @Valuater Why have you added some '()', how do you say it in english ? this works : $split[$split[0]] Cheers, FireFox. Link to comment Share on other sites More sharing options...
Valuater Posted January 20, 2009 Share Posted January 20, 2009 @Valuater Why have you added some '()', how do you say it in english ? this works : $split[$split[0]] Cheers, FireFox. It's a clear separation of the information and dedication to the manipulation for concentration finalization. 8) Link to comment Share on other sites More sharing options...
weaponx Posted January 20, 2009 Share Posted January 20, 2009 It's a clear separation of the information and dedication to the manipulation for concentration finalization.8)Haha. Translation: the parentheses aren't needed here, simple mistake. Link to comment Share on other sites More sharing options...
FireFox Posted January 20, 2009 Share Posted January 20, 2009 @weaponx no problem, everyone can do little mistakes parenthese, same word in french Cheers, FireFox. Link to comment Share on other sites More sharing options...
Valuater Posted January 20, 2009 Share Posted January 20, 2009 (edited) Actually, it placed there on purpose. it clarify's and is future Autoit compatible!!! The real question is, was it helpful to the OP??? 8) Edited January 20, 2009 by Valuater Link to comment Share on other sites More sharing options...
myspacee Posted January 21, 2009 Author Share Posted January 21, 2009 Thank you for clarify that StringSplit() can be used with given string. (next time i try before post) But what is OP ? (me, ok, but?) m. Link to comment Share on other sites More sharing options...
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