Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

22 Feb 2015   #1
Maude

Windows 7 Home Premium
 
 
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 System SpecsSystem Spec
.
22 Feb 2015   #2
Berton

Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
 
 

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 System SpecsSystem Spec
23 Feb 2015   #3
Maude

Windows 7 Home Premium
 
 

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 System SpecsSystem Spec
.

23 Feb 2015   #4
Berton

Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
 
 

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 System SpecsSystem Spec
23 Feb 2015   #5
Maude

Windows 7 Home Premium
 
 

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 System SpecsSystem Spec
27 Feb 2015   #6
Maude

Windows 7 Home Premium
 
 

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 System SpecsSystem Spec
Reply

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




Thread Tools




Similar help and support threads
Thread Forum
Command Prompt: "close: No such file or directory"
I have several batch files that I need to run from Command Prompt. For exampleecho off echo !HM | ncat 192.168.1.6 80So visually I see:C:\ncat>home.bat echo off close: No such file or directory C:\ncat>All the batch files work as desired but always return the error code. ncat.exe is in the...
Software
Strange "Command Prompt Error" Messages on Startup
Hi, After booting up my laptop (Dell studio 7 running Windows 7 Premium 64) today, two strange "Command Prompt Error" message appeared. They had something like "Hidden Startup" as the window title (I might not have remembered this completely accurately as I didn't think to take a screenshot or...
General Discussion
"Copy" command in command prompt generates 0x1a artifact?
Hello Everybody! I don't know if this is a real issue, or just one of those "What the . . . .!!" situations. You judge. Situation: I was working on a batch file that combines two .txt (ASCII?) files created in Notepad to create a composite file, and I noticed something really interesting. ...
Software
Need To Add "Authenticated Users" Every Directory Within "Music"
First off this is my work laptop. I have my standard Music library, which is a directory directly off the C drive. When I download or move into that "Music" directory the directory I moved has a lock icon on it. In order to get rid of the icon, I need to add "Authenticated Users" to the...
General Discussion


Our Sites

Site Links

About Us

Find 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 11:04.
Twitter Facebook Google+