Computer Hope

Microsoft => Microsoft DOS => Topic started by: wsuErk on March 04, 2011, 07:02:07 AM

Title: Problems navigating to partition
Post by: wsuErk on March 04, 2011, 07:02:07 AM
I am currently trying to write a batch file to move some stuff from one NTFS partition to another. The problem is i cant navigate to my other partition. If anyone can guide me threw what i am doing wrong that would be fantastic. Im using CMD in xp SP3.
Title: Re: Problems navigating to partition
Post by: Salmon Trout on March 04, 2011, 07:56:58 AM
please show your batch file so far.
Title: Re: Problems navigating to partition
Post by: wsuErk on March 04, 2011, 08:16:25 AM
I haven't started on it. The only thing i need is how to change directory to the partition. other than that all will take is a "move "File name" "Location" "
Title: Re: Problems navigating to partition
Post by: Geek-9pm on March 04, 2011, 10:48:41 AM
Code: [Select]
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Kohn>d:

D:\>cd bat

D:\bat>
Title: Re: Problems navigating to partition
Post by: Salmon Trout on March 04, 2011, 01:50:34 PM
I haven't started on it. The only thing i need is how to change directory to the partition. other than that all will take is a "move "File name" "Location" "

What do you mean by "partition"?

To change to a directory on a different drive either:

(1) Change to the wanted drive letter by using the letter followed by a colon D: then use cd to change to the folder cd bat

or

(2) do it all at once by using the cd command with the /d switch e.g.: cd /d d:\bat


Title: Re: Problems navigating to partition
Post by: wsuErk on March 04, 2011, 03:30:17 PM
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Erk>cd f:
F:\

C:\Documents and Settings\Erk>

that is what is happening, it echos back but doesn't change. Bellow i attached a picture of the drive i am trying to direct to.
(https://mail.google.com/mail/?ui=2&ik=9aed2d50a5&view=att&th=12e82fd050d1aed7&attid=0.1&disp=inline&realattid=f_gkvoc4il0&zw)
Title: Re: Problems navigating to partition
Post by: wsuErk on March 04, 2011, 03:33:52 PM
Also my F:\ is the same hard drive as C:\ just a different partition. im sorry for not clarifying earlier.
Title: Re: Problems navigating to partition
Post by: Salmon Trout on March 04, 2011, 04:20:07 PM
Read what I wrote above about changing drive letters.

Title: Re: Problems navigating to partition
Post by: wsuErk on March 05, 2011, 05:33:35 AM
i appologize, i miss read what you wrote and was still using CD when i tried to change. when switching drives do you always leave out the "cd"?
Title: Re: Problems navigating to partition
Post by: Salmon Trout on March 05, 2011, 05:37:55 AM
i appologize, i miss read what you wrote and was still using CD when i tried to change. when switching drives do you always leave out the "cd"?

Change drive, use letter and colon

D:

Change directory on same drive use cd

cd c:\pictures\cats

Change drive and directory at same time

cd /d d:\music\Mozart\Operas\Cosi