Jump to content

Blank Character


ali
 Share

Recommended Posts

Okay, basically I have a file named as a blank character (basically a space, but because spaces cannot be used for file names, there is a character which looks like a space, but has a value), and i would like to delete the file in an autoitscript. But for some reason the script doesnt recognize the character. Any idea how to fix it so that i can delete the "blank-char-named" file?

Link to comment
Share on other sites

Are you sure it is a standard space and not a non-breaking space? A non-breaking space can be used as a filename.

I would suggest trying

FileDelete(FileSaveDialog("Choose File to Delete", @ScriptDir, "All (*.*)", 1))

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Link to comment
Share on other sites

Are you sure it is a standard space and not a non-breaking space? A non-breaking space can be used as a filename.

I would suggest trying

FileDelete(FileSaveDialog("Choose File to Delete", @ScriptDir, "All (*.*)", 1))

It is the type of character which looks like a space, e.g. Alt+0160

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...