rhysE_b Topic Starter
Greenhorn

Posts: 9
Thanked: 0
OS: Unknown
Experience: Beginner
|
|
« 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
Apprentice

Posts: 546
Thanked: 34
OS: Linux Variant
Experience: Experienced
|
|
« Reply #1 on: November 06, 2009, 08:09:25 AM » |
|
do it yourself first..what have you got.?
|
|
|
|
rhysE_b Topic Starter
Greenhorn

Posts: 9
Thanked: 0
OS: Unknown
Experience: Beginner
|
|
« 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
Greenhorn

Posts: 9
Thanked: 0
OS: Unknown
Experience: Beginner
|
|
« Reply #3 on: November 06, 2009, 08:35:50 AM » |
|
Can anyone tell me if this is correct?
|
|
|
|
|
|
|
rhysE_b Topic Starter
Greenhorn

Posts: 9
Thanked: 0
OS: Unknown
Experience: Beginner
|
|
« 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.
|
|
|
|
|
mroilfield
Apprentice

Posts: 639
Thanked: 20
OS: Windows XP
Experience: Familiar

|
|
« Reply #6 on: November 06, 2009, 09:25:43 AM » |
|
There is a difference in researching the answer and just expecting others to give it you.
|
A smart man learns from his mistakes, A wise man learns from the mistakes of others.
If it isn't broke don't try to fix it.
|
|
|
rhysE_b Topic Starter
Greenhorn

Posts: 9
Thanked: 0
OS: Unknown
Experience: Beginner
|
|
« 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
|
|
|
|
|
mroilfield
Apprentice

Posts: 639
Thanked: 20
OS: Windows XP
Experience: Familiar

|
|
« Reply #8 on: November 06, 2009, 09:28:32 AM » |
|
I am sure your teacher will let you when you hand it in.
|
A smart man learns from his mistakes, A wise man learns from the mistakes of others.
If it isn't broke don't try to fix it.
|
|
|
rhysE_b Topic Starter
Greenhorn

Posts: 9
Thanked: 0
OS: Unknown
Experience: Beginner
|
|
« 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.
|
|
|
|
|
BC_Programmer
Sage

Posts: 8841
Thanked: 257
OS: Windows XP
Computer: Specs
Experience: Experienced


|
|
« Reply #10 on: November 06, 2009, 10:25:26 AM » |
|
Copy MOVEME.TXT C:\ORIG\TXT Move C:\ORIG\TXT\MOVEME.TXT C:\NEW\TXT Delete C:\ORIG\TXT\COPY.SEM
The syntax for copy is Copy <source> <destination> But you didn't specify the right source folder, did you? Also... according to the spec given I see no reason to have a MOVE command.
|
If this is real life, where the heck is the decimal?
|
|
|
|
|
rhysE_b Topic Starter
Greenhorn

Posts: 9
Thanked: 0
OS: Unknown
Experience: Beginner
|
|
« 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.
|
|
|
|
|