Sign in to follow this  
Followers 0
J_Y_C

Invalid Characters in send() string?

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



woof.

You're the dude. I have used the send() function so many times I had become numb to it. Thanks a mil.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0