Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Tech Tips & Tricks
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor recovery router safe mode screen slow sound spyware tdlwsp.dll trojan video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > General Technology > Tech Tips & Tricks >
Dos Batch Files

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
DarrenW's Avatar
Member with 96 posts.
 
Join Date: Jul 2000
Location: Alberta, Canada
Experience: Advanced
15-Nov-2000, 12:17 AM #1
i'm getting into dos batch files and have created some to run in Win98 Scheduled Maintenence...one question...is there a switch you can use for a program that usually requires user input to run (ie. a mouse click or a selection from a list of choices)?
mole's Avatar
Senior Member with 795 posts.
 
Join Date: Aug 1999
Location: Indian Head, MD "The land of
15-Nov-2000, 08:48 AM #2
DarrenW,

You can use a *.pif file with a "?" as the command line parameter to start a batchfile. First a dialog box will open and whatever you type into the box will get sent to the batch as %1. Right click a pif put something in the commandline box like this:

c:\bat\mybatch.bat ?

You can also use the old Pifedit.exe program from Windows 3x to create your pifs, I find it quicker from the command prompt than Explorer, though it is limited in some respects (8x3 names for one), it will take UNC names.

The Start.exe program can also perform a shell execute from a batch and give you some flow control over you programs. Use the /w to wait, /max to run maximized, /m to run minimized and so on.

<a href="http://www.robvanderwoude.com">Rob's Scripting Page</a> has some good info on batches.

Let me know if you need more help. How much snow do you have up there now?

mole
DarrenW's Avatar
Member with 96 posts.
 
Join Date: Jul 2000
Location: Alberta, Canada
Experience: Advanced
15-Nov-2000, 09:32 AM #3
thanks mole, that's exactly what i was looking for. as for snow...actually we've had about an inch so far but its all melted. i live in the "chinook" belt.

[This message has been edited by DarrenW (edited 11-15-2000).]
mole's Avatar
Senior Member with 795 posts.
 
Join Date: Aug 1999
Location: Indian Head, MD "The land of
16-Nov-2000, 05:10 AM #4
Glad that helped. I should also have mentioned that you can use any command line parameter with a *.pif that you would use with the *.bat that it runs.

Nice to hear from your part of the world. Havn't been out to the Rockies since 1998 and the DC metro area is driving me nuts.

mole
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 07:41 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.