Computer Hope

Computer Hope Forum Welcome, Guest. Please login or register.
November 22, 2009, 11:46:26 AM
Home Help Staff Chat Login Register
News: Make sure to cast your vote in the November poll.

Computer Hope Forums  >>  Microsoft  >>  Microsoft DOS (Moderator: Computer Hope Admin)  >>  Topic: 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 411 times)
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
Logged
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.?
Logged

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
Logged
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?
Logged
patio
Moderator
Mastermind
*
Posts: 15269

Thanked: 424
OS: Windows Vista
Computer: Specs
Experience: Guru



Maud' Dib


« Reply #4 on: November 06, 2009, 09:18:19 AM »

What time is the exam ? ?
Logged

   

 Last year I went fishing with Salvador Dali. He was using a dotted line. He caught every other fish.

 
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.
Logged
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.
Logged

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
Logged
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.
Logged

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.
Logged
BC_Programmer
Sage
*
Posts: 8841

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




« 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.
Logged

If this is real life, where the heck is the decimal?
Quantos
Egghead
*
Posts: 2851

Thanked: 109
OS: Windows Vista
Experience: Guru
Certifications: List



Union Proud IW 720


« 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'.
Logged

Paranoia, it's what happens when you have all of the facts.
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.



Logged
Quantos
Egghead
*
Posts: 2851

Thanked: 109
OS: Windows Vista
Experience: Guru
Certifications: List



Union Proud IW 720


« 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.
Logged

Paranoia, it's what happens when you have all of the facts.
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.
Logged
Pages: [1] 2  All - (Top) Print 
Computer Hope Forums  >>  Microsoft  >>  Microsoft DOS (Moderator: Computer Hope Admin)  >>  Topic: MS-DOS Question « previous next »
Jump to:  


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright 1998-2008 by Computer Hope (tm). All rights reserved
Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC
Page created in 0.171 seconds with 18 queries.