[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 9443 Date : 2004-12-06 Author : John Zeman Subject : Re: OT Eliminating the crap on the Internet Size(KB) : 2
--- In xxcopy@yahoogroups.com, "Patrick Hyde" wrote: > Hi John, > My sincere apologies in the first place. > I am going to take advantage of this moment. > At one time in the past you helped me with a bat file for my Optional > Backup. > As we are at this moment OFF TOPIC, I felt it to be the ideal time to ask > for assistance again. > > I will admit that I cannot for the life of me, write batch files. > I can mange the simple one, but when it come to a menu like structure, I am > totally lost. > I want to use a small utility, by Gibson Research, found at > http://grc.com called wizmo. > > It is a small utility which allows the use of command entries to effect a > result. > e.g. wizmo exit would take the system to EXIT simply by using this command. > What I want to do is to have a batch file, with the option of say ten or > twelve options. 1 through 12. > > 1. wizmo exit > 2.wizmo standby > 3. > 4.. > I think you know what I mean. > > But how to write such a batch file is beyond my capabilities. > So, John, can and will you help. > > You may be as old as dirt, but I made the dirt. > > > Kind Regards > > Pat > > I use wizmo myself Pat, I use it to mute or change the sound levels. Manfred gave you a good example of how to do what you want. But I know you are also looking to learn how this works, so I will take his basic batch file and add comments to explain each line. Just so you know, a batch file "comment" starts on a line by itself and begins with either REM or :: and anything that follows it is ignored. So everything I added to Manfred's batch file below here is in uppercase, extra, and can be deleted. One final note. So you can test this, I also added the word ECHO in front of the actual wizmo command lines. That way Windows won't actually shut down or go to standby. When you are ready to put it to use, remove ECHO from the wizmo lines. John REM TURN OFF COMMAND ECHOING @echo off REM CLEAR THE SCREEN cls REM CREATE EMPTY LINE SO TEXT STARTS ON SECOND LINE echo. REM SHOW WIZMO INSTRUCTIONS echo The following you can do with "wizmo"!! echo Input the number you will run!! REM CREATE ANOTHER EMPTY LINE echo. REM SHOW WIZMO CHOICES echo 1 = wizmo exit echo 2 = wizmo standby REM CREATE A VARIABLE NAMED X WHOSE VALUE WILL BE REM THE NUMBER YOU TYPE (THEN PRESS ENTER) set /p x=Input: REM APPEND THE NUMBER YOU TYPED TO THE WORD RUN REM AND THEN GO TO THE LABEL WITH THE MATCHING NAME goto run%x% REM THE RUN1 LABEL :run1 REM DO WIZMO EXIT TO SHUTDOWN WINDOWS ECHO wizmo exit REM GOTO THE :END LABEL AND END THE BATCH FILE goto end REM THE RUN2 LABEL AND COMMANDS ARE SIMILAR TO RUN1 :run2 ECHO wizmo standby goto end REM END THE BATCH FILE :end PAUSE cls
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.