Windows 8 and 8.1 Forums


Command Prompt does not recognise Username

  1. #1


    Posts : 7
    Windows 8.1

    Command Prompt does not recognise Username


    Hi there,

    I am desperate to get a .pak file unpacked with node.js and therefore I need to run a few commands in command prompt.
    It does, however, not recognise my username. My OS is Windows 8 (or 8.1, the latest version at least).

    My username is like 'lohtar i.e. administrator' (first name, initials, last name, with spaces and dots) and somewhere this seems to go wrong for command prompt.

    When I open command prompt it does give 'C:\Users\lohtar i.e. administrator', but when I give the next command I get:

    Error: ENOENT, no such file or directory 'C:\Users\lohtar'

    I am absolutely clueless what is going wrong here and I am desperate for someone who has a clue, and hopefully a solution too. I'll happily send you eternal gratitude and who knows, I may just even toss in a virtual cupcake.

    What I am trying to do btw is to change the bookmark folder icon in Google Chrome, as it bugs me to no end, via this route: https://productforums.google.com/for...me/afsEEZMrhEw

      My System SpecsSystem Spec

  2. #2


    Posts : 22,578
    64-bit Windows 10


    Hello Lohtar, and welcome to Eight Forums.

    If you like, you could use %UserProfile% instead of C:\Users\lohtar in the command prompt. It's an environmental variable for the current user's profile folder path.
    Last edited by Brink; 14 May 2015 at 19:34.
      My System SpecsSystem Spec

  3. #3


    Posts : 7
    Windows 8.1


    Hey Brink,

    Thank you so much for your reply. I tried this and while it works for the first command, the second command gives the same error as I posted above. Sadly your suggestion is not the solution, I'm afraid.

    Also, while I'm happy enough (thrilled, to be honest) with a workaround, it does seem odd that a username goes unrecognised, no?
      My System SpecsSystem Spec

  4. #4


    Posts : 22,578
    64-bit Windows 10


    Just to verify, did you use the command below for the 2nd one?

    Code:
    node main.js unpack %UserProfile%\Desktop\chromeskin\chrome_100_percent.pak %UserProfile%\Desktop\chromeskin\unpacked\
    Last edited by Brink; 14 May 2015 at 19:33.
      My System SpecsSystem Spec

  5. #5


    Posts : 7
    Windows 8.1


    Yes, indeed, exactly as you posted it (except for what I assume to be a typo: profile instead of profle, also as profle gives an error too in the first command where profile works).
      My System SpecsSystem Spec

  6. #6


    Posts : 22,578
    64-bit Windows 10


    If you type %UserProfile% in the address bar of File Explorer and press Enter, does it open the correct C:\Users\lohtar path?
      My System SpecsSystem Spec

  7. #7


    Posts : 7
    Windows 8.1


    Sorry for the late response, sleeping, working and all that.

    Yes, this works fine. If I do that I get the whole C:\Users\lohtar i.e. administrator
      My System SpecsSystem Spec

  8. #8


    S.E. Texas
    Posts : 61
    windows 8.1 64bit


    Just curious... Is windows command line like Linux in that it doesn't like spaces and/or special characters in names?
      My System SpecsSystem Spec

  9. #9


    Posts : 7
    Windows 8.1


    Honestly? I have no idea. I'm not really familiar with Linux but what is awkward here is that windows command sometimes does recognise it and sometimes it doesn't, though always with the same command comes the same response which makes me assume there is some logic to it, though oblivious to me.
      My System SpecsSystem Spec

  10. #10


    S.E. Texas
    Posts : 61
    windows 8.1 64bit


    Found it. Yes it is. You need to escape the name because it has spaces. Quotes, Escape Characters, Delimiters | Windows CMD | SS64.com
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Command Prompt does not recognise Username
Related Threads
no log in password to use for 'command prompt' in User Accounts and Family Safety
all of a sudden my HP 9200 notebook w/windows 8 went into an 'automatic repair' that failed.... can't use 'refresh' because I don't have password to use with my log in name..... can't use command prompt for that same reason.....i am a 63yr old 'amateur' pc person..... am communicating now by...
Solved Sfc /scannow command prompt in Performance & Maintenance
I ran the sfc /scannow command prompt on my Windows 8.1 desktop. It said it could fix all of the problems. So, I restarted it. It said the corrupted files were in C/Windows/Logs/CBS/CBS.log. I couldn't get it to paste the files on this forum. Also, command prompt gave me a not that said...
Command prompt (Admin) in General Support
Everytime I try to use the above command, the console box vanishes within a second. I have also tried to install chrome, the console opens and closes winthin a second, hence not able to read any nessages. I have full administrator right. No viruses Thanks
Solved Command Prompt Woes in General Support
Hello! So, I seem to be having a problem when command prompt needs to run anything as an admin. This happens whenever it feels it needs to do so, like when setting a program to run as admin myself, or running an installer, like the setup for firefox (I'm in chrome right now, but I happen to...
Command Prompt help in General Support
The average monitor can display 25 lines of text in full screen mode. When you list a directory containing more than 25 files, some of the filenames disappear off the top of the screen before you have a chance to read them. What do you add to the DIR command to always prevent this?
Solved elevated command prompt...huh? in General Support
how do I open an elevated command prompt?
Command Prompt crashes in General Support
Hi After upgrading from Windows 7 to Windows 8 everything seems to works fine except when I want to run command line applications from 3rd party programs. When this is happening the Windows 8 command prompt just stop working. I have to use many programs based on command prompt for web developing...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook