Windows 10: Invalid MS-DOS

Discus and support Invalid MS-DOS in Windows 10 Support to solve the problem; It would only be the name you were revealing not the contents. Apart from the name (which may be invalid somehow) the interesting letters are here in... Discussion in 'Windows 10 Support' started by meg ryan, Nov 17, 2015.

  1. meg ryan Win User

    Invalid MS-DOS


    Replacing the path in red with what you want to delete.[/quote] I looked and i have A's not HR
     
    meg ryan, Nov 17, 2015
    #16
  2. lx07 Win User

    This lot looks OK
    These last ones look wrong.

    What happens if you try to delete them manually from the command line - for example the last one Code: del %userprofile%\desktop\1456746_597374830367408_1861631489138766950_n.png[/quote] What does it say? Is there an error message?
     
  3. meg ryan Win User
    What does it say? Is there an error message?[/quote] yes there is it says the filename, directory name or volume label syntax is incorrect.
     
    meg ryan, Nov 17, 2015
    #18
  4. lx07 Win User

    Invalid MS-DOS

    Can you tell us the exact error message as I made a png with the exact same name and it deleted fine.

    Perhaps the name is OK but it certainly looks odd.


    Invalid MS-DOS [​IMG]
     
  5. meg ryan Win User
    I did tell you the error message exactly C:\Users\Home>del%userprofile%\desktop\1456746_597374830367408_1861631489138766950_n.pngThe filename, directory name, or volume label syntax is incorrect.
     
    meg ryan, Nov 17, 2015
    #20
  6. Word Man Win User
    Since we need to be exact, Meg, was there a space between "del" and "%userprofile%" or was it without the important space exactly as you posted above?
     
    Word Man, Nov 17, 2015
    #21
  7. lx07 Win User
    You need a space between the del and the first % - like in post 17.
     
  8. Invalid MS-DOS

    I am wondering if Meg knows the difference between a command prompt and an Elevated prompt. She said from the beginning that she is not very hip to computer jargon, which to me translates to, not being an experienced user. That much is evident from her lack of knowledge regarding syntax.
    I do not say that as a detriment to Meg, only to point out that maybe someone could take it step by step from opening an Elevated Command Prompt, to typing in what needs to be typed in. Ex. Dir[space]/p[space]Windows or something to that effect. What a command looks like in a GUI environment and what it looks like at the actual prompt can be deceiving.
    Just a suggestion to get her issue solved.
     
    Irishman331, Nov 17, 2015
    #23
  9. meg ryan Win User
    You would right computer jargon is beyond me... i did it again with the space and nothing happened just went back to c:\users\home>

    Is that not right either?
     
    meg ryan, Nov 17, 2015
    #24
  10. lx07 Win User
    That is right (and good news) - that means it has deleted it. If you check on your desktop it should be gone.

    This means you can delete things from the desktop using this method even is the normal way doesn't work. Note this method of cleanup should be one time only. If you save something new to desktop you should be able to delete it as normal.

    Other things you want to delete you can repeat the same process just changing the name.

    The format is this: note the space after the del and also note the quotes which you should include Code: del %userprofile%\desktop\"Whatever the name.xxx"[/quote] You need to replace Whatever the name with the file name and the xxx with the file extension.

    So for example the previous one on your list on post #15 is this (don't worry about the colors - I'm just trying to make it clearer what goes where - as you saw the command prompt window is black and white)

    10-Aug-15 09:36 AM 56,866 11817217_1172013119490763_7311893396328677083_n.jpg

    so delete it you would enter this in command prompt:

    Code: del %userprofile%\desktop\"11817217_1172013119490763_7311893396328677083_n.jpg"[/quote] Please let me know if this is not clear or if you have any questions.
     
  11. meg ryan Win User
    You correct ive just deleted the newest file which was one of the command prompt screen grabs however i have no idea what i deleted as no space as opened up on my desktop therefore i imagine it was from a folder.

    Is this seriously the only way to get around this? As this is going to take a very long time identifying what i want to delete and then going to a list and trying to get the right one (wish i labellled them better now)
     
    meg ryan, Nov 18, 2015
    #26
  12. meg ryan Win User
    Also this doesnt help in tiding up the desktop by moving files into a folder which i also can not do....
     
    meg ryan, Nov 18, 2015
    #27
  13. lx07 Win User

    Invalid MS-DOS

    We could try to move everything that is on the desktop into another folder. As the delete command works the move command should also.

    Once they are in the new folder you should be able to delete the ones you want and move the others back to desktop through normal means. This should be much easier.

    Give me 5 minutes or so I'll work out the command.
     
  14. lx07 Win User
    Please enter these 4 commands in order exactly as they are (including spaces) from a command window as before.

    1. This command will create a new folder in your documents folder called OldDesktop Code: mkdir %userprofile%\Documents\OldDesktop[/quote] 2. This command will change your working directory to the desktop so the later commands move the right things Code: cd %userprofile%\Desktop[/quote] 3. This command will move all of the files from your desktop to the new folder OldDesktop. Code: for %i in (*) do move "%i" %userprofile%\Documents\OldDesktop[/quote] 4. This command will move all of the folders (also known as directories) including their contents from your desktop to the new folder OldDesktop. Code: for /d %i in (*) do move "%i" %userprofile%\Documents\OldDesktop[/quote]
    Invalid MS-DOS [​IMG]
    Note
    • Commands 1 and 2 should finish without saying anything.
    • Command 3 should say "1 file(s) moved." repeated as many times as you have files on your desktop.
    • Command 4 should say "1 dir(s) moved." repeated as many times as you have folders on your desktop.

    Once these have completed you should not have anything on your desktop. You can then open your documents folder, browse to OldDesktop and inside should be everything that was on your desktop. You can then delete, tidy and copy things back to your desktop as you wish.

    Hope this helps - let us know if you have any questions or see any errors.
     
  15. Word Man Win User
    Maybe another approach? Have seen permissions problems myself in one upgrade back when build 10240 first went public.
    Maybe you have a similar permissions problem?

    You might want to apply the tutorial found at this link (single left click on any of the blue letters: https://www.tenforums.com/tutorials/3...dows-10-a.html
    and using the Options 2, 3, or 4 described in it - putting, as a start, the full path to your desktop folder in place of the red lettered paths in the tutorial, duplicating everything as specified, including the spaces.

    If you need help following the tutorial, we can do that in this thread also.
     
    Word Man, Nov 18, 2015
    #30
Thema:

Invalid MS-DOS

Loading...
  1. Invalid MS-DOS - Similar Threads - Invalid DOS

  2. windows 11 key suddenly invalid

    in Windows 10 Gaming
    windows 11 key suddenly invalid: i built my own computer a while back and got an OEM license not pro, and im on windows home. i believe it was a windows 10 license but i know you get the free upgrade to windows 11. it worked great for many months, however, whenever i upgraded to 24H2, i got a popup saying...
  3. windows 11 key suddenly invalid

    in Windows 10 Software and Apps
    windows 11 key suddenly invalid: i built my own computer a while back and got an OEM license not pro, and im on windows home. i believe it was a windows 10 license but i know you get the free upgrade to windows 11. it worked great for many months, however, whenever i upgraded to 24H2, i got a popup saying...
  4. windows 11 24H2 build 26100.3775 - lot of files suddenly have error "invalid file handle"...

    in Windows 10 Gaming
    windows 11 24H2 build 26100.3775 - lot of files suddenly have error "invalid file handle"...: windows 11 24H2 build 26100.3775 - for several days now, a lot of files all suddenly have errors "invalid file handle" when trying to do ANYTHING with them like read, copy, move, delete, etc, some files the programs cannot find with error "file not found" until computer...
  5. windows 11 24H2 build 26100.3775 - lot of files suddenly have error "invalid file handle"...

    in Windows 10 Software and Apps
    windows 11 24H2 build 26100.3775 - lot of files suddenly have error "invalid file handle"...: windows 11 24H2 build 26100.3775 - for several days now, a lot of files all suddenly have errors "invalid file handle" when trying to do ANYTHING with them like read, copy, move, delete, etc, some files the programs cannot find with error "file not found" until computer...
  6. Password invalid issue in Application pool of windows server 2022.

    in Windows 10 Gaming
    Password invalid issue in Application pool of windows server 2022.: We are performing the server migration from Windows server 2016 to 2022. We have created IIS and enabled all the features in 2022 same as 2016. When updating the account in Application Pool with existing account, we are facing issue that specific password is invalid. The...
  7. Password invalid issue in Application pool of windows server 2022.

    in Windows 10 Software and Apps
    Password invalid issue in Application pool of windows server 2022.: We are performing the server migration from Windows server 2016 to 2022. We have created IIS and enabled all the features in 2022 same as 2016. When updating the account in Application Pool with existing account, we are facing issue that specific password is invalid. The...
  8. Windows Explorer says Invalid MS-Dos function copying files from CD-ROM

    in Windows 10 Network and Sharing
    Windows Explorer says Invalid MS-Dos function copying files from CD-ROM: I'm trying to read files from a CD-ROM that I wrote back in 2001. Windows Explorer failes to copy the files, with Invalid MS-DOS Function. Recovery software, like Recuva, copies the files but they are invalid. ie When I try to Open a .TIF Image Photos won't open it; Word...
  9. Fix Invalid MS-DOS Function file error on Windows 10

    in Windows 10 News
    Fix Invalid MS-DOS Function file error on Windows 10: [ATTACH]If when you try to move, delete, copy or rename files/folders in Windows 10 and you receive the Invalid MS-DOS Function error message, then this post […] This article Fix Invalid MS-DOS Function file error on Windows 10 first appeared on TheWindowsClub.com. read more...
  10. Invalid MS-DOS Function

    in Windows 10 Support
    Invalid MS-DOS Function: Hello, Could somebody please help, I have various files throughout my hard drive which error "Invalid MS-DOS Function" if I try and move or delete them however they "work" normally if I try and use them. I ran a check disk which returned no errors. I am feeling this...