J_Y_C Posted August 21, 2007 Share Posted August 21, 2007 So, here's the situation, the file names returned by FileFindNextFile, when used in a send(), seem to be altered if there are certain characters. I don't know what characters to look for, maybe this is a no brainer, maybe not, but I'm starting to get frustrated. Given a directory with 1 file in it named "this_has_a_funky+_char.txt" you can do $search = FileFindFirstFile("*.txt") ; Check if the search was successful If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop ConsoleWrite($file&@CRLF) Send($file) WEnd FileClose($search) When you write the file name to the console, it will show the file name correctly, but when you send() the file, it removes the "+" symbol, in this example sending "this_has_a_funky_char.txt". Any good reason that it does this? Has anyone else experienced this? Am I using the $file the wrong way to get the name? Is there a way around this? Link to comment Share on other sites More sharing options...
DW1 Posted August 21, 2007 Share Posted August 21, 2007 replace: Send($file)oÝ÷ Û«¢+ÙM¹ ÀÌØí¥±°Ä AutoIt3 Online Help Link to comment Share on other sites More sharing options...
J_Y_C Posted August 21, 2007 Author Share Posted August 21, 2007 woof. You're the dude. I have used the send() function so many times I had become numb to it. Thanks a mil. 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