How to name a file with illegal characters?
Results 1 to 5 of 5

Thread: How to name a file with illegal characters?

  1. #1
    Senior Member Falcon21's Avatar
    Join Date
    Dec 2002
    Location
    Singapore
    Posts
    252

    How to name a file with illegal characters?

    My friend computer has a malicious file with the character "?". My question is how can a file be named with those illegal characters? How to do it manually? Thanks.

  2. #2
    Flash M0nkey
    Join Date
    Sep 2001
    Posts
    3,447
    doesn't work for a question mark tho (alt+63)
    even if you go into cmd prompt and try from there it seems as if it accepts the new name but wont actually do it.

    so is not ascii codes

    btw SF_13 the ascii characters you used to name that txt file arent banned from windows file names

    some banned characters are \|/<>*:"? prolly others which i can't remember

    v_Ln

    edit >> dammit swordfish_13 where'd your post go - lol

  3. #3
    AntiOnline n00b
    Join Date
    Feb 2004
    Posts
    665
    Hi

    dammit swordfish_13 where'd your post go - lol
    Halloween time things get spooky today


    I realised what you just said even before you said it ..................what i was using were ASCII characters and not the Illegal ones.................

    My Guess is this file was made in some font of a different language....................generally Chinese and japanese language files made in their font............ endup showing ????? in their place in my computer could that be the case here ?


    --Good Luck--

  4. #4
    Senior Member
    Join Date
    Oct 2001
    Posts
    786
    If the question mark was an illegal character, we would have an issue. But it is a perfectly legitimate character for a filename. When it is the first character in a FAT entry, it simply shows that the file was deleted, and that the operating system doesn't yet want to reallocate the sectors on the disk that this deleted file used to occupy. It isn't supposed to show up anywhere else because Microsoft doesn't want people to confuse the OS if the FAT becomes corrupt. It is just a reserved character/name like "con" or "com1" or "aux", etc. Imagine the headaches people would have trying to delete a file named "aux" or something.

    Anyways, it is possible. It isn't illegal. It is just something Windows has liked to avoid ever since the days of DOS when FAT was introduced, and NTFS built off of it.


    Freaky, huh?

  5. #5
    Senior Member
    Join Date
    Jun 2004
    Posts
    460
    according to this microsoft article they are quite easy to remove... (so the inverse is also very easily possible)

    http://support.microsoft.com/kb/q120716/
    [gloworange]find / -name \"*your_base*\" -exec chown us:us {} \\;[/gloworange] [glowpurple]Trust No One[/glowpurple][shadow] Use Hardened Gentoo [/shadow]
    CATAPULTAM HABEO. NISI PECUNIAM OMNEM MIHI DABIS, AD CAPUT TUUM SAXUM IMMANE MITTAM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •