Command Prompt Error: "Cannot find directory "C:\Users\..."


  1. Posts : 4
    Windows 7 Home Premium
       #1

    Command Prompt Error: "Cannot find directory "C:\Users\..."


    Hello,

    I have basic knowledge of the command terminal, in that I only know how to navigate through directories. Currently I am trying to execute the following:

    java –jar MRTBatch.jar –d input_directory –p parameter_directory\input_parameter_file –o parameter_file_directory

    I have already navigated to the correct directory to make use of the MRTBatch.jar tool, however the problem arises with my user inputs, which are of the form "C:\Users\My Name\Rest of path". I keep getting the error:

    ERROR: Could not find directory "C:\Users\My Name".

    When navigating directories earlier I always had to go find the file I wanted, copy its path location, paste it into the command terminal, and then erase the "C:\" portion (so it became cd\Users\My Name\Rest of path) for it to work. So when I got this error I have tried multiple edits for it to recognize the paths. Could it be as simple as switching the direction of the slashes? I would have thought the complete path name would always be best. Is it because I'm already burrowed down so far that it cant seem to recognize any file further back?

    Here are the directions I am following, pg 40 titles "Automated Batch Processing": https://lpdaac.usgs.gov/sites/default/files/public/mrt41_usermanual_032811.pdf
    My goal is to mosaic a bunch of satellite imagery using the MODIS Reprojection Tool (MRT).

    Thank you for the help!
      My Computer


  2. Posts : 1,519
    Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
       #2

    Web site URLs use the forward slash / while path statements in the OS use the backslash \.

    Your problem just may be that it needs to start from the root of the drive or C:\. If it starts at the standard Command Prompt it will already be looking below/inside C:\Users\your name\.
      My Computer


  3. Posts : 4
    Windows 7 Home Premium
    Thread Starter
       #3

    Hello Berton,

    Thank you for the reply. I will keep in mind the forward/backward slash information for future work. Your reply says to start from the root of the drive or C:\. I have tried from C:\ and it gives me the same error, which is what led me to trying out different edits of the path. When you say the root of the drive, do you mean something further back than C:\? I will try looking for what that is, a well as further edits to the path name.
      My Computer


  4. Posts : 1,519
    Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
       #4

    C:\ is the root of the drive or partition on the drive that the OS is installed on. Same for other drives or partitions but change the letter accordingly.
      My Computer


  5. Posts : 4
    Windows 7 Home Premium
    Thread Starter
       #5

    Hello,

    Could it be an access problem? In that administrative privilege requirements are blocking me from these paths, and I should move my folders to other locations? I am the only user of my laptop so it seems silly to have to do so. I have just tried unchecking the read only option for my user account in an attempt to allow access, but this has not helped. I'm now going to move everything to my desktop and see if moving out of my user account will get things moving.
      My Computer


  6. Posts : 4
    Windows 7 Home Premium
    Thread Starter
       #6

    Turns out that moving everything onto my desktop and actually embedding the files I needed further into the actual bin I was working from got me a little further. It at least recognized what I wanted, but the real trick was using " " around my path name. So I think I could un-imbed all those files and be fine. Thank you Berton for the help!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:36.
Find Us