Windows 8 and 8.1 Forums


The DOS prompt in Windows 8

  1. #11


    N. Calif
    Posts : 2,583
    W10 Pro (desktop), W10 (laptop), W10 Pro (tablet), W10 (laptop)


    You really shouldn't mess with the files in the System32 folder. The reason why your copy is not working is because you need to put quotes around "temp stuff" since there is a blank in the middle. Without the quotes, your copy command sees temp & stuff as separate parameters instead of a single parameter.

      My System SpecsSystem Spec

  2. #12


    Posts : 1,093
    Windows 8 Pro Windows 8.1 Preview


    Create a new target folder without the space in the name (ie, temptest)
    Open an admin command prompt so you are in the correct directory
    See below:

    Click image for larger version
      My System SpecsSystem Spec

  3. #13


    Posts : 1,093
    Windows 8 Pro Windows 8.1 Preview


    Quote Originally Posted by strollin View Post
    You really shouldn't mess with the files in the System32 folder. The reason why your copy is not working is because you need to put quotes around "temp stuff" since there is a blank in the middle. Without the quotes, your copy command sees temp & stuff as separate parameters instead of a single parameter.
    Even though I provided a solution, I completely agree with strollin!
      My System SpecsSystem Spec

  4. #14


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    Quote Originally Posted by Frank1 View Post

    Here is an example of what is strange. I created a folder inSystem 32 called Temp stuff.
    One of the files in System 32 is xpsfilt.dll. So I openCommand Prompt (admin), get into the System32 folder and type" copyxpsfilt.dll temp stuff" without the quotation marks. I get the message,"The syntax of the command is incorrect" I can even type in copy *.*and it still doesn't work. It's not necessary for me to use the copy command,but it's supposed to work and it's strange that it doesn't. The reason I amtrying it in System32 and not the root directory is because, when I try to lookat the files in the root, all I see is the folders and no files. That's strange,too. By the way I have my system set so that it shows hidden files. I don't understand why while viewing the files while in the command prompt, I can't see them in the root directory but I can while in system32 directory.

    You would have to use the old dos 8+3 naming convention, also it's a name with a space in it, and Dos command can't hack spaces. If the folder name is "Temp Stuff" it would be put in as "Temp~1" - I think Program Files becomes "Progra~1" so try Temps~1 or Tempst~1 if Temp~1 don't work. Dos can't read folder names longer than 8 characters+3 characters.

    I'm only referring to the CMD command, not Powershell, Powershell CAN hack full folder and file names. But the command prompt usually can't when it is being used for those old Dos commands.
      My System SpecsSystem Spec

  5. #15


    Posts : 1,093
    Windows 8 Pro Windows 8.1 Preview


    Hey Frank1. You are welcome BTW. Good luck.
      My System SpecsSystem Spec

  6. #16


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    Quote Originally Posted by strollin View Post
    You really shouldn't mess with the files in the System32 folder. The reason why your copy is not working is because you need to put quotes around "temp stuff" since there is a blank in the middle. Without the quotes, your copy command sees temp & stuff as separate parameters instead of a single parameter.
    Oh yah - That should work too. But I used to have a helluva time making the copy command start cos it was looking for an 8+3 name. it they updated the command to allow the quotes, that would be the easiest way to do it, sorry, haven't used Copy or Xcopy for a few years.
      My System SpecsSystem Spec

  7. #17


    Ohio
    Posts : 473
    Windows 8 Pro


    Ok, I believe that you have answered my question. I'm finding out that I have to remember the old DOS restrictions as to file names.
    Thanks
      My System SpecsSystem Spec

  8. #18


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    Great! I knew that had something to do with it. I used to do a lot of copying like this, and I had to figure out the 8+3 name all the time. I think there used to be a DIR command that would show them, but Its been so long, I think Justatest or someone posted a link to Dos commands and their syntax.
      My System SpecsSystem Spec

  9. #19


    N. Calif
    Posts : 2,583
    W10 Pro (desktop), W10 (laptop), W10 Pro (tablet), W10 (laptop)


    Quote Originally Posted by Frank1 View Post
    Ok, I believe that you have answered my question. I'm finding out that I have to remember the old DOS restrictions as to file names.
    Thanks
    If you put quotes around the names then you don't have to worry about those old DOS restrictions. That was the way it was in DOS but in Windows 8 you don't have those restrictions as long as you put quotes around names that contain blanks.

    For instance, open a command prompt and try this:

    md "we do not need to restrict ourselves to using only eight plus three file names" [ENTER]

    Afterwards do a dir and you will see that a new folder was created with the long folder name.

    Then try this:

    notepad "i want to give this file a very long name.txt" [ENTER]

    Notepad will open with the long file name, save it and exit.

    The try this:

    copy "i want to give this file a very long name.txt" "we do not need to restrict ourselves to using only eight plus three file names" [ENTER]

    The result will be that the file with the long name will be copied to the folder with the long name.

    You can choose to restrict yourself and do it the same way it was done in DOS or you can remove the restriction and use the current non-restrictive method. Why use a modern OS but hold yourself back with vintage OS restrictions?
      My System SpecsSystem Spec

  10. #20


    Ohio
    Posts : 473
    Windows 8 Pro


    I'll use the quotation marks from now on as it does work.
      My System SpecsSystem Spec

Page 2 of 2 FirstFirst 12
The DOS prompt in Windows 8
Related Threads
Windows 8.1 UAC Credential Prompt in User Accounts and Family Safety
I work at a school and we are rolling out laptops to students, whilst they are at school they will be on the school domain, then removed when they leave, we are creating a generic local account for the students to use at home i.e user. This user will be apart of the administrators group, as a...
:cry: O.K. I'm on my 6th new hard drive! Here is what happened, I installed 2 Brand new 1tb hard drives to my computer! So my goal was to start windows 8 from scratch (not hacked like my other drives), so they are installed and I got a Brand new Windows 8 disk loaded it to my C: hard drive and low...
I booted up this morning and when I opened the first program, I was greeted with the prompt to install Windows 8.1. That may not be a bad thing for those who want Windows 8.1, but I don't. At least not until the bugs are killed off. However, having said that, there was absolutely no way to shut...
.wav file that doesn't get deleted. After i hit enter various del commands don't get executed and the cmd prompt stops(doesn't let me type). This is frustrating because it is causing windows task to run excessively when it's folder(downloads) is open. Any help, thanks.
When I right click on run and select open as administrator, I get the following error: file:////C:/users/pc/appdata/roaming/microsoft/windows/start menu/programs/system tools/run.lnk The parameter is incorrect. It doesn't give this message when trying run anything else as an administrator as...
hello, im wanting to disable a shutdown prompt that appears with windows 8. ive installed a 'soluto' equivalent to a start menu, using their website and software, tweaks etc. for some reason I now get a prompt when I click on the 'shutdown' button in the start-menu on the desktop. is...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook