|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|||
|
Batch files
I really hate having to do this but I'm completely stomped. I can't figure out batch files to save my life. Can someone throw together two batch files for me? All help is greatly appreciated.
Batch 1 1. The routine should use a drive or subdirectory specification entered on the command line to provide a list of files and their attributes in all subdirectories. The output should be piped to the MORE command so that the screen will pause to allow reading. Batch 2 1. The routine should display the volume label by running the program LB.BAT (see below). It should then continue by running the program TY.BAT(also below). After the user is done reading the screen, clear the screen when they are ready to continue. Code:
LB.BAT @echo SET %1 Set /p drivename = "Set drive name to" LABEL %drivename% Code:
TY.BAT @echo off type %1 ps: I think lb.bat may be wrong... but that is what I came up with |
|
|||
|
I threw one together real quick... yup it works.
You shouldn't have any problem doing it yourself if you paid attention in class. ![]()
__________________
Yes, it is very possible, in fact, highly probable, that you are wrong. You would be a better person if you would just admit that. And I would be less annoyed. ![]() "I like doggies....and apparently dinousaurs, mostly because they eat cats!" --Nilpo |
|
||||
|
I really don't mean to sound too condescending here, but these are extremely elementary tasks. You really can figure this out on your own. Go back through your class notes or text book. If all else fails, a quick Google search should reveal a plethora of sites that will guide you in the right direction.
Come back here with a true attempt, and I'll gladly help you formulate your idea. But we are not going to construct these for you.
__________________
Click the image if at any point you don't like my decision.10011100011000101111100011100000011000000100000011 10010011011110110001101101011011110100011000001110 0100111101000100001 Visit Nilpo.com and Ask the Windows Guru! Open me for some very useful links!
![]() |
![]() |
| Viewing: Dev Hardware Forums > SOFTWARE > Programming > Batch files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|