Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old January 21st, 2008, 11:06 AM
rtk rtk is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 1 rtk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 44 sec
Reputation Power: 0
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

Reply With Quote
  Trader Rating: 1 · #2  
Old January 21st, 2008, 11:41 AM
weevilofdoom's Avatar
weevilofdoom weevilofdoom is offline
BLURG
Dev Hardware Loyal (3000 - 3499 posts)
 
Join Date: Sep 2004
Location: Oregon
Posts: 3,453 weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 44th Grade (Above 100000 Reputation Level)  Folding Points: 32443 Folding Title: Starter FolderFolding Points: 32443 Folding Title: Starter Folder
Time spent in forums: 2 Months 2 Days 16 h 39 m 55 sec
Reputation Power: 3902
Send a message via ICQ to weevilofdoom Send a message via AIM to weevilofdoom Send a message via MSN to weevilofdoom Send a message via Yahoo to weevilofdoom Send a message via Google Talk to weevilofdoom
sure sounds like a homework problem to me - i won't touch it with a 10 foot pole.. sorry.
__________________

Reply With Quote
  Trader Rating: 1 · #3  
Old January 21st, 2008, 07:59 PM
Dngrsone Dngrsone is offline
Gone, gone gone
Dev Hardware God 6th Plane (7500 - 7999 posts)
 
Join Date: May 2004
Location: in the real world
Posts: 7,769 Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)  Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 3 Weeks 6 Days 23 h 42 m 13 sec
Reputation Power: 5198
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

Reply With Quote
  Trader Rating: 2 · #4  
Old January 22nd, 2008, 02:36 PM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Hardware God (5000 - 5499 posts)
 
Join Date: May 2004
Location: Salem, OH
Posts: 5,404 Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)Nilpo User rank is General 78th Grade (Above 100000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 1 Week 3 Days 19 h 42 m 53 sec
Reputation Power: 6193
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
MySpace Orkut
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!    

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > Batch files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT