MS-DOS

Moderators: blip
Number of threads: 362
Number of posts: 872

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Is there a genius here who can help me PLEASE!! Posted by makten on 1 Nov 2011 at 2:57 PM
I have this assignment i have been strugling with for weeks.... I have to create batch file that will copy files starting with a letter a user enters.... Example my batch program is called CA.BAT and anytime someone types in the command prompt

C:\>CA a .... Dos will start copying files starting with a to the directory A:\...

Any HELP will be HUGELY appreciated.

thanks in advance
Report
Re: Is there a genius here who can help me PLEASE!! Posted by axtens on 1 Nov 2011 at 7:54 PM
This is just off the top of my head, so to speak, but ...
@ECHO OFF
IF %1@==@ GOTO :EOF
COPY %1* A:\


Kind regards,
Bruce.
Report
This post has been deleted. Posted by axtens on 1 Nov 2011 at 8:00 PM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.