Computer Hope
Microsoft => Microsoft DOS => Topic started 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.
-
please show your batch file so far.
-
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" "
-
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Kohn>d:
D:\>cd bat
D:\bat>
-
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
-
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)
-
Also my F:\ is the same hard drive as C:\ just a different partition. im sorry for not clarifying earlier.
-
Read what I wrote above about changing drive letters.
-
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"?
-
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