Right now: Live recording of the Tech Support Guy Show!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
Suggest Anything! DOS BATCH file asking


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
JStergis's Avatar
Computer Specs
Distinguished Member with 3,341 posts.
 
Join Date: Jul 2005
Location: Massachusetts
Experience: what we call our mistakes
12-Aug-2005, 07:41 PM #1
Suggest Anything! DOS BATCH file asking
I am deploying a batch file over a network, and I need the batch to ask which file to delete. I need the user to type in their username or their username.pwl and it will delete the pwl file. I can point it to the directory previously, so that isn't a problem, just have it say something like Type your username now and press enter, or type your username followed by .pwl (No space between) and press enter

ANY SUGGESTIONS AT ALL WILL BE A GREAT HELP!

Thanks,
J.S.
__________________

Joe

"America believes in education: the average professor earns more money in a year than a professional athlete earns in a whole week."
- Evan Esar

JStergis's Avatar
Computer Specs
Distinguished Member with 3,341 posts.
 
Join Date: Jul 2005
Location: Massachusetts
Experience: what we call our mistakes
12-Aug-2005, 08:07 PM #2
Also, is there a way to make a file read-only through a batch file or DOS?
JStergis's Avatar
Computer Specs
Distinguished Member with 3,341 posts.
 
Join Date: Jul 2005
Location: Massachusetts
Experience: what we call our mistakes
12-Aug-2005, 08:32 PM #3
Literally, what I am asking for is some way to record a user entered entry and enter it later as a command automatically.

J.S.
plejon's Avatar
Senior Member with 626 posts.
 
Join Date: Jul 2001
Location: Willebroek / Belgium
Experience: Intermediate
17-Aug-2005, 04:17 AM #4
Have a look at these articles for the user input :
http://www.ericphelps.com/batch/samples/samples.htm

Making a file read-only in a batch file can be done with the ATTRIB command
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:03 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.