rhysE_b Topic Starter
Posts: 9
|
 |
« on: November 06, 2009, 07:19:57 AM » |
|
Hi Guys,
Im new to this forum so sorry if i am posting in the wrong place. I am wondering if anyone can help me, i have a test question that i have no idea what the answer is the question is.
"Write by hand in the box below an MS-DOS batch file that will copy the large MOVEME.TXT from the directory C:\ORIG\TXT to the empty directory C\NEW\TXT and delete the file C:\ORIG\TXT\SEM if the copy was successful"
If anyone could help with the answer/commands for this that would be great.
Thanks Rhys
|
|
|
|
|
gh0std0g74
Thanked: 37 Posts: 590
|
 |
« Reply #1 on: November 06, 2009, 08:09:25 AM » |
|
do it yourself first..what have you got.?
|
|
|
|
rhysE_b Topic Starter
Posts: 9
|
 |
« Reply #2 on: November 06, 2009, 08:13:30 AM » |
|
Copy MOVEME.TXT C:\ORIG\TXT Move C:\ORIG\TXT\MOVEME.TXT C:\NEW\TXT Delete C:\ORIG\TXT\COPY.SEM
|
|
|
|
|
rhysE_b Topic Starter
Posts: 9
|
 |
« Reply #3 on: November 06, 2009, 08:35:50 AM » |
|
Can anyone tell me if this is correct?
|
|
|
|
|
patio Moderator
Thanked: 1023 Posts: 10,558
Experience: Beginner OS: Windows 7

Maud' Dib
|
 |
« Reply #4 on: November 06, 2009, 09:18:19 AM » |
|
What time is the exam ? ?
|
" All generalizations are false, including this one. "
|
|
|
rhysE_b Topic Starter
Posts: 9
|
 |
« Reply #5 on: November 06, 2009, 09:23:03 AM » |
|
I have 20 more minutes to get the right answer.. i am not cheating i have been given some questions whereby i have had to go away and research the information.
|
|
|
|
|
|
|
rhysE_b Topic Starter
Posts: 9
|
 |
« Reply #7 on: November 06, 2009, 09:27:00 AM » |
|
I have researched it thats what i have posted above? i wanted to know if this is right?
Posted by: rhysE_b Posted on: Today at 08:13:30 AM
Copy MOVEME.TXT C:\ORIG\TXT Move C:\ORIG\TXT\MOVEME.TXT C:\NEW\TXT Delete C:\ORIG\TXT\COPY.SEM
|
|
|
|
|
|
|
rhysE_b Topic Starter
Posts: 9
|
 |
« Reply #9 on: November 06, 2009, 09:32:57 AM » |
|
I dont think you understand, Im a Junior IT Technician and my boss has given me questions he know's i dont know the answer to so he has said go away and get the answer anyway you can.
But if you dont want to help me no problem.
|
|
|
|
|
|
|
|
|
rhysE_b Topic Starter
Posts: 9
|
 |
« Reply #12 on: November 06, 2009, 01:42:47 PM » |
|
Firstly,
As soon as i entered the home page of Computer Hope it says.... ' Computer Hope Overview '
Under that it says... 'Computer Hope helps everyone with any computer related question and is the resource to learn more about computers.'
It also goes on to say 'Thank you for visiting Computer Hope, the location for free online computer support and computer related information. Computer Hope has been designed to assist all types of computer users with any of their computer or technical related questions as well as a great location to learn more about your computer and its hardware and software.'
So what the F*** is this site actually for?
It is also not homework, it was for a work related purpose but i work in a completely different field.
|
|
|
|
|
|
|
billrich Guest
|
 |
« Reply #14 on: November 06, 2009, 02:10:02 PM » |
|
C:\>type copymov.bat copy moveme.txt c:\orig\txt\
cd orig cd txt dir pause cd \
move c:\orig\txt\moveme.txt c:\new\txt\
cd c:\new\txt dir cd \ pause
del c:\orig\txt\moveme.txt
OUTPUT:
C:\>copymov.bat
C:\>copy moveme.txt c:\orig\txt\ 1 file(s) copied.
C:\>cd orig
C:\orig>cd txt
C:\orig\txt>dir Volume in drive C has no label. Volume Serial Number is F4A3-D6B3
Directory of C:\orig\txt
11/06/2009 03:05 PM <DIR> . 11/06/2009 03:05 PM <DIR> .. 11/06/2009 03:03 PM 10 moveme.txt 1 File(s) 10 bytes 2 Dir(s) 304,409,149,440 bytes free
C:\orig\txt>pause Press any key to continue . . .
C:\orig\txt>cd \
C:\>move c:\orig\txt\moveme.txt c:\new\txt\
C:\>cd c:\new\txt
C:\new\txt>dir Volume in drive C has no label. Volume Serial Number is F4A3-D6B3
Directory of C:\new\txt
11/06/2009 03:05 PM <DIR> . 11/06/2009 03:05 PM <DIR> .. 11/06/2009 03:03 PM 10 moveme.txt 1 File(s) 10 bytes 2 Dir(s) 304,409,149,440 bytes free
C:\new\txt>cd \
C:\>pause Press any key to continue . . .
C:\>del c:\orig\txt\moveme.txt Could Not Find c:\orig\txt\moveme.txt
C:\>
P.s. REM The move command deletes the source file automatically.
|
|
|
|
|