Click here to Skip to main content
15,861,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Everyone,

I have a couple of questions for you. I hope you guys can help me with these 2 questions.

1. How to create a batch file that will fill the entire screen with your name and with different colors.

2. How to create a batch file that will create a directory named chanel in drive c: then copy all files in drive c: that ends in .bat to the directory chanel and display all files copied?

Looking forward to hearing from you.
Posted
Comments
[no name] 2-Jul-14 17:02pm    
And what have you done, yourself, to get your homework assignment done?
Sergey Alexandrovich Kryukov 2-Jul-14 17:21pm    
What version of Windows is that? Almost certainly, it does not have "DOS". :-)
How any of those questions could possibly be related to C or C++?
—SA

1 solution

Please see my comment to the question. I would not advise to play with colors and window size for batch files.

Here is what you can do:

Run this batch file created by Rob van der Woude:
http://www.robvanderwoude.com/allhelp.php[^].

It will generate the file "allhelp.htm" which contain all the help information on the batch programming collected from your current version of OS. Learn the content. Go to the site referenced above; it could be a good help in learning batch programming.

See also:
http://en.wikipedia.org/wiki/Batch_file[^],
http://www.dreamincode.net/forums/topic/55203-batch-tutorial-part-1[^].

This is a useful lest of other resources: http://www.netikka.net/tsneti/http/tsnetihttpprog.php#batch[^].

Final advice: don't get addicted to batch programming, save your time by writing short scripts helping you to do simple repeated tasks (such as build) and, even more importantly, don't go any further. Remember, you need to learn batch programming mostly to know the usage of your OS better, not to become a batch artist. Instead, focus on real programming, computer science and other more useful and fundamental things.

—SA
 
Share this answer
 
v4
Comments
Usman Hunjra 2-Jul-14 18:00pm    
Very Useful .. thanks for ur effort .. +5
Sergey Alexandrovich Kryukov 2-Jul-14 20:51pm    
Thank you, Usman.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900