G
Guest
Guest
Archived from groups: microsoft.public.windowsxp.newusers (More info?)
I've got two different copies of Windows XP installed on my System, one on
drive D: the other on drive F:. I've got a Batch file on drive C: that when
executed from the copy of Windows installed on drive D: copies a file
"GOLDEN.bat" from drive C: to a specific directory on drive D: When
executed from the copy of Windows installed on drive F: it should copy the
same file from drive C: to a directory with the same name on drive F:.
Typical lines of code are:
Set PathC=C:\(My Documents)\z (Documents)
Set PathD1=%SystemDrive%\Documents and Settings
Set PathD2=StartMenu\Programs\Startup
XCOPY /y "%PathC%\+Macros\Golden.bat" "%PathD1%\DJohansen\%PathD2%\*.*"
The enviornment variable "SystemDrive" is a system variable that is
automattically set to "D:" when executed from the copy of Windows on Drive
D:, and set to "F:" when executed from the copy of Windows on drive F:
I've copied the above four lines of code to a batch file which I've called
"BATCH.bat".
When executed from the copy of Windows installed on drive D: the file copy
is successfully made. When executed from drive F:, however, the system
displays an error message: "File not found - Golden.bat -", immediately
following display of the operation.
This is clearly a problem. The copy operation should be succesfull no
matter where it is executed from. Can anyone help me out?
Don J
---------------------------------------------------------------------------------
I've got two different copies of Windows XP installed on my System, one on
drive D: the other on drive F:. I've got a Batch file on drive C: that when
executed from the copy of Windows installed on drive D: copies a file
"GOLDEN.bat" from drive C: to a specific directory on drive D: When
executed from the copy of Windows installed on drive F: it should copy the
same file from drive C: to a directory with the same name on drive F:.
Typical lines of code are:
Set PathC=C:\(My Documents)\z (Documents)
Set PathD1=%SystemDrive%\Documents and Settings
Set PathD2=StartMenu\Programs\Startup
XCOPY /y "%PathC%\+Macros\Golden.bat" "%PathD1%\DJohansen\%PathD2%\*.*"
The enviornment variable "SystemDrive" is a system variable that is
automattically set to "D:" when executed from the copy of Windows on Drive
D:, and set to "F:" when executed from the copy of Windows on drive F:
I've copied the above four lines of code to a batch file which I've called
"BATCH.bat".
When executed from the copy of Windows installed on drive D: the file copy
is successfully made. When executed from drive F:, however, the system
displays an error message: "File not found - Golden.bat -", immediately
following display of the operation.
This is clearly a problem. The copy operation should be succesfull no
matter where it is executed from. Can anyone help me out?
Don J
---------------------------------------------------------------------------------