1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Windows 3.1 & PC-DOS 6.3 - Illegal character in filename

Discussion in 'Legacy Windows' started by ThomasJK, 2014/11/23.

  1. 2014/11/23
    ThomasJK

    ThomasJK Well-Known Member Thread Starter

    Joined:
    2009/04/26
    Messages:
    96
    Likes Received:
    4
    Trophy Points:
    208
    Computer Experience:
    Intermediate
    Hi,

    I'm having a slight problem with my Win 3.1 & PC-DOS 6.3 laptop.
    I once extracted a bunch of files (which I don't need anymore) from a zip-file into its hard drive, and later noticed that one of the files has an illegal character (space) in its filename, so I can't delete or rename it.

    I was thinking, if I start the laptop with Windows 95 bootdisk, it can handle the longfilenames, and filenames with space, and I could then delete that file.

    But could it damage the DOS filesystem? Bootdisk was made on a Windows 95 OSR1 computer, which does not have a FAT32 filesystem, so I guess it is compatible with DOS. Does anyone know/remember if thats correct?
     
  2. 2014/11/23
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,696
    Likes Received:
    335
    Trophy Points:
    1,093
    Location:
    Maryland, USA
    Computer Experience:
    Experienced
    For example, if the filename was

    foo bar.txt​

    try the command:

    del foo?bar.txt​

    (The "?" is a wildcard).
     

  3. to hide this advert.

  4. 2014/11/24
    ThomasJK

    ThomasJK Well-Known Member Thread Starter

    Joined:
    2009/04/26
    Messages:
    96
    Likes Received:
    4
    Trophy Points:
    208
    Computer Experience:
    Intermediate
    Hi SpywareDr,

    That worked, thank you very much.
    I just didn't happen to think, that it's possible to replace illegal character in filename with a wildcard.
    I will mark this thread solved.
     
  5. 2014/11/25
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,696
    Likes Received:
    335
    Trophy Points:
    1,093
    Location:
    Maryland, USA
    Computer Experience:
    Experienced
    You're more than welcome. Thanks for letting us know. :)

    Please mark your thread as 'Resolved'.

     
    Last edited: 2014/11/25

Share This Page