Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 05-26-2005, 05:24 PM   #11
Daemon Poster
 
Techy Geek's Avatar
 
Join Date: Feb 2005
Posts: 1,320
Send a message via MSN to Techy Geek
Default Re: Simple Batch File Help

you could do it in VB with option buttons, im not sure how to, or even if this helps, but it may lead you in the right directio, I apologise if this is no use whatsoever, I promise its not spamming, this would be spamming:
"marmite is tasty"
or something along those line, anyway
What is this program for, what does it do,
__________________

__________________
"If I seem to act unkind, its only me and not my mind" I Want To Tell You, The Beatles, Revolver
"When I am king, you will be first against the wall" Paranoid Android, Radiohead, OK Computer
There are two types of people, those who hate Microsoft, and those who work for it...
Possibly a Mac Convert
Techy Geek is offline   Reply With Quote
Old 05-26-2005, 07:39 PM   #12
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: Simple Batch File Help

yes... it could also be done much easier in c, php and perl...

if you wanted something a little more fancy then you could always go for grahical menus inside of batch file... try havng a look for wbat...
__________________

root is offline   Reply With Quote
Old 05-27-2005, 03:30 AM   #13
Solid State Member
 
Join Date: May 2005
Posts: 9
Default Re: Simple Batch File Help

Quote:
Originally Posted by pcmxkeith
What exactly are you wantning to do with this script? If you are truing to setup a network i recommend getting your self a server and installing "Kixtart" or Kix32, (login scripts)
Basically it has to be one batch file where you double click on it - it loads and has those three options from my first post. Then you can either type 1, 2 or 3 and it performs the action.
Mike_A is offline   Reply With Quote
Old 05-27-2005, 05:31 AM   #14
BSOD
 
pcmxkeith's Avatar
 
Join Date: Dec 2004
Posts: 842
Send a message via AIM to pcmxkeith Send a message via MSN to pcmxkeith Send a message via Yahoo to pcmxkeith
Default Re: Simple Batch File Help

Might i ask the use of that ?!
pcmxkeith is offline   Reply With Quote
Old 05-27-2005, 06:24 AM   #15
Solid State Member
 
Join Date: May 2005
Posts: 9
Default Re: Simple Batch File Help

dunno just part of a small piece of work they want us to create for the last week of school.
Mike_A is offline   Reply With Quote
Old 05-27-2005, 06:26 AM   #16
BSOD
 
pcmxkeith's Avatar
 
Join Date: Dec 2004
Posts: 842
Send a message via AIM to pcmxkeith Send a message via MSN to pcmxkeith Send a message via Yahoo to pcmxkeith
Default Re: Simple Batch File Help

oh ok lol, Was wondering... Because in all of the networks i setup i used the Kixtart / kix32 bat / exe file.
pcmxkeith is offline   Reply With Quote
Old 05-27-2005, 01:51 PM   #17
Baseband Member
 
thecoolkid's Avatar
 
Join Date: Feb 2005
Posts: 91
Default batch file

here is the code

@echo off
cls
Title Menu
:start
echo Menu:
echo 1. net name
echo 2. dir c:\
echo 3. finished
set /p option=What menu choice?[space]
if "%option%"="1" goto 1
if "%option%"="1." goto 1
if "%option%"="2" goto 2
if "%option%"="2." goto 2
if "%option%"="3" goto 3
if "%option%"="3." goto 3
if "%option%"="" goto 4
:4
echo Please select a number
goto start
:1
net name
Pause
goto start
:2
dir C:\
Pause
goto start
:3
exit

thecoolkidontheblock

P.S. You might want to run that before you turn it in.
__________________
"Computers are one per cent inspiration and ninety-nine per cent perspiration. Accordingly, a 'computer' is often merely a talented machine who has done all of its homework."

-Thomas Edison, Modern Day.
thecoolkid is offline   Reply With Quote
Old 05-27-2005, 03:07 PM   #18
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: Simple Batch File Help

very cool...

one aleration


if "%option%"="1" goto 1

needs to be

if "%option%"=="1" goto 1

(thats for all the if statements)
root is offline   Reply With Quote
Old 05-28-2005, 08:21 PM   #19
Baseband Member
 
thecoolkid's Avatar
 
Join Date: Feb 2005
Posts: 91
Default batch

sry...I didn't realize that you need a universal operator for that type of thing. I have been using one equal sign with all of my batch files and they work fine. I think its more optional...?
__________________
"Computers are one per cent inspiration and ninety-nine per cent perspiration. Accordingly, a 'computer' is often merely a talented machine who has done all of its homework."

-Thomas Edison, Modern Day.
thecoolkid is offline   Reply With Quote
Old 05-29-2005, 05:10 AM   #20
Solid State Member
 
Join Date: May 2005
Posts: 9
Default Re: Simple Batch File Help

Thanks for this.

I've just copied and pasted into wordpad and ran it yet when I type in 1 or 2 or 3 it shows me the menu option again
__________________

Mike_A is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Refbacks are Off



All times are GMT -5. The time now is 11:40 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0