Jump to content

Passing Special Characters in folder names via AUTOIT Scripts (apostrophe)


Recommended Posts

This may sound like a very newbie question, but I'm working on a script to manipulate text logfiles. I have it almost working the way I want it to, but one folder I am trying to do something with has a special character for the folder name which is throwing the script off. I know that in some languages, I would have to preceed the special character with some kind of code that tells it its just a string of text and not the ending quote for the current line.

The special character in question this time is an apostrophe '

If my folder did not have an apostrophe, it seems to be working, but I want to fix the script so it would be able to work with the default folder names of the applications we already use.

Any help would be greatly appreciated!

Thanks!

Link to comment
Share on other sites

It would be best if you posted at least one line of code so that we could point you in the correct direction.

i.e. if you are using Send or ControlSend - they both have flags to handle your issue.

If you are dealing with strings - the correct mixture and placement of double and single quotes should solve your issue.

DirRemove("c:\temp\test's")

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...