Gif Posted July 7, 2007 Posted July 7, 2007 (edited) i have a couple of strings and i want to get only the strings that are paths (that dont exist)the strings are pretty much like this @themenu.dll -192 (dont want this)C:\Windows\system32... (i want this)LangID (dont want this)anyway to get the paths?i tried thisIf Not StringInStr($con, "@") Or StringInStr($con, "-") Then If Not FileExists($con) Then GUICtrlCreateListViewItem($con & "|" & $selected, $ListView) EndIfbut again it returns all the values...thanks in advance!oh dear thats a silly post, found the solution quickly Edited July 7, 2007 by c4nm7
xcal Posted July 7, 2007 Posted July 7, 2007 $path = 'C:\Windows\system32' If FileExists($path) And StringInStr(FileGetAttrib($path), 'D') Then MsgBox(0, '', 'It''s a folder!') How To Ask Questions The Smart Way
Gif Posted July 7, 2007 Author Posted July 7, 2007 (edited) $path = 'C:\Windows\system32' If FileExists($path) And StringInStr(FileGetAttrib($path), 'D') Then MsgBox(0, '', 'It''s a folder!') its ok i found the solution and this wouldnt work cause i want a path thats DOESNT EXISTS so i couldnt check for this strings for a path cause non of these sttrings exists... here is the solution: If Not StringInStr($con, "@") And StringTrimLeft($con, 6) Then If Not FileExists($con) Then GUICtrlCreateListViewItem($con & "|" & $selected, $ListView) EndIf Edited July 7, 2007 by c4nm7
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