Home / Microsoft / Microsoft DOS / MS-DOS Question
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2  All - (Bottom) Print
Author Topic: MS-DOS Question  (Read 1078 times)
rhysE_b
Topic Starter
Greenhorn



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
IP logged
gh0std0g74
Apprentice



Thanked: 37
Posts: 590


« Reply #1 on: November 06, 2009, 08:09:25 AM »

do it yourself first..what have you got.?
IP logged

rhysE_b
Topic Starter
Greenhorn



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
IP logged
rhysE_b
Topic Starter
Greenhorn



Posts: 9


« Reply #3 on: November 06, 2009, 08:35:50 AM »

Can anyone tell me if this is correct?
IP logged
patio
Moderator
Genius



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 ? ?
IP logged

   
"
All generalizations are false, including this one.  "
rhysE_b
Topic Starter
Greenhorn



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.
IP logged
mroilfield
Adviser



Thanked: 41
Posts: 952

Experience: Experienced
OS: Windows XP



1 1
« 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.
IP logged

You can't fix Stupid!!!
rhysE_b
Topic Starter
Greenhorn



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
IP logged
mroilfield
Adviser



Thanked: 41
Posts: 952

Experience: Experienced
OS: Windows XP



1 1
« Reply #8 on: November 06, 2009, 09:28:32 AM »

I am sure your teacher will let you when you hand it in.
IP logged

You can't fix Stupid!!!
rhysE_b
Topic Starter
Greenhorn



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.
IP logged
BC_Programmer
Mastermind


Thanked: 682
Posts: 15,624

Computer: Specs
Experience: Beginner
OS: Windows 7


Pinkie Pie is best pony

BC-Programming.com 1 1
« Reply #10 on: November 06, 2009, 10:25:26 AM »

Quote

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.
IP logged

Quantos
Guru



Thanked: 158
Posts: 4,041

Experience: Experienced
OS: Windows Vista


Union Proud IW 720

Iron Workers Local 720 1 1
« Reply #11 on: November 06, 2009, 12:44:59 PM »

rhysE_b, we are not in the habit of providing answers for homework.  There was however a great resource that used to be available, I'm not sure if it can still be purchased new or not.  It's called 'DOS for Dummies'.
IP logged

"Ah the agony, ah the shame, making one man's privates - public for a game..."  Mel Brooks
rhysE_b
Topic Starter
Greenhorn



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.



IP logged
Quantos
Guru



Thanked: 158
Posts: 4,041

Experience: Experienced
OS: Windows Vista


Union Proud IW 720

Iron Workers Local 720 1 1
« Reply #13 on: November 06, 2009, 01:50:22 PM »

We are here to provide people with support for computers, not to do their work for them.  Or their homework.  We will help you find resources that can further your education.  Anybody in the IT field should be able to understand this.

I did not mean to offend you, but if you took it that way, then I can't help it.
IP logged

"Ah the agony, ah the shame, making one man's privates - public for a game..."  Mel Brooks
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.
IP logged
Pages: [1] 2  All - (Top) Print 
Home / Microsoft / Microsoft DOS / MS-DOS Question « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.125 seconds with 21 queries.