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 Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Can't use "at" command on cmd prompt anymore?
So I used to be able to use the "at" command on command prompt, but now whenever I try to use it like: at 5:00 shutdown -s -f it says "the service has not been started." Any help would be appreciated. Thanks!
Software
All Users Desktop Files "Not Found" (Dir *.*) in Elevated Cmd Prompt
Re: Windows 7, SP1, Home Premium, 64-bit When using Q-Dir, a 4-pane Windows Explorer replacement, I can manually move desktop files/icons between the all users a/c and my account. I created a batch file to do this, and it works fine when clicked from within Q-Dir. It does not, however work from...
General Discussion
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
Adding "Open Command Prompt" Option
Hey guys, I know there's a way to add a "Open command window here" when you click ON a folder... but what I'm curious about is if there's a way to do that if you're IN a folder. It never made sense to me, if I want to run a command-line utility like ffmpeg on a file, to have to go up a folder,...
Customization
Using "start" in command prompt
Hello I understand what the %path% and %pathext% variables are. typing: "notepad" or "calc" in the command prompt from any directory will open notepad.exe and calc.exe because their directories are in %path% and ".exe" is in %pathext%. On the other hand "wordpad.exe" and "chrome.exe are...
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 09:20.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App