HELP!!! My Command Prompt it is crazy


  1. Posts : 3
    Windows 7
       #1

    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 Computer


  2. Posts : 3,371
    W10 Pro desktop, W11 laptop, W11 Pro tablet (all 64-bit)
       #2

    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 Computer


  3. Posts : 2,774
    Windows 7 Professional 64-bit
       #3

    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 Computer


  4. Posts : 3,371
    W10 Pro desktop, W11 laptop, W11 Pro tablet (all 64-bit)
       #4

    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 Computer


  5. Posts : 3
    Windows 7
    Thread Starter
       #5

    I tested like strollin said.

    He is right!

    First I switch drive and after the directory.

    Thanks all.
      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 18:35.
Find Us