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: HELP!!! My Command Prompt it is crazy

29 Apr 2015   #1
julianfiglioli

Windows 7
 
 
HELP!!! My Command Prompt it is crazy

People, my English is not very well.
I am from Brazil!

I have two HDs. Disk C:\ and disk D:\

I open the command prompt. It is in c:\users\julian>

When I digit: cd d:\backup
The prompt return in c:\users\julian

After that, I digit only d:

Than the prompt go to d:\backup

But it is crazy! It as not so.

Can be environment variable?

Thanks


My System SpecsSystem Spec
.
29 Apr 2015   #2
strollin

W10 Pro desktop, W10 laptop, W10 laptop, W10 Pro tablet (all 64-bit)
 
 

If you are on the C: drive, you cannot switch drives and folders at the same time as in cd d:\backup, you need to switch drives first with D: then cd \backup as you discovered.
My System SpecsSystem Spec
29 Apr 2015   #3
RolandJS

Windows 7 Professional 64-bit
 
 

Actually, back in the days of FredFlintstone computing with DOS 3.3/DOS 4 and Windows 3.1, a utility called cdd let you do just that - specifiy drive and directory [if my memory serves me correctly]
My System SpecsSystem Spec
.

29 Apr 2015   #4
strollin

W10 Pro desktop, W10 laptop, W10 laptop, W10 Pro tablet (all 64-bit)
 
 

It's a simple matter to write a batch file to do that:

Code:
@echo off
IF %1. == . goto USAGE
%1
cd %2
goto XIT
:USAGE
ECHO Usage: CDD drive path ie CDD D: \Backup
:XIT
Save the above as cdd.bat.
My System SpecsSystem Spec
29 Apr 2015   #5
julianfiglioli

Windows 7
 
 

I tested like strollin said.

He is right!

First I switch drive and after the directory.

Thanks all.
My System SpecsSystem Spec
Reply

 HELP!!! My Command Prompt it is crazy




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing
How to fix MBR through command prompt?
Question: What commands could I run in the command prompt during the system recovery? I try & run say "fixmbr" but it doesn't work. Say if I want to write a new master boot record how would I do that?
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
command prompt
Hi all i need you help me a thing :cry: I went to use autosave all text on command prompt (CMD), how can i do or use what command prompt cade for mark it autosave when i used command prompt. Example : Color 0a
General Discussion
Run administrative command prompt from command prompt
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative...
General Discussion
Command Prompt
Ok so every time I try to open the command prompt using an external source (batch file, small c++ program i made to say Hi to me through the command prompt) it instantly closes. Does anyone have any idea why this is happening and if so how can I fix it? Thanks, Wave
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 13:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App