batch randomization

Ok so im trying to make a text based game in batch, my concept was a batch store game where every time a customer walks in for example they ask for something its not the same thing every time you restart the batch file and if there is a way to put a section on the batch file where you could list a few scenarios and batch would randomize it to be one of those scenarios you had.

Asked by RoyalR5 10 months ago


what is a wildcard for folders in batch?

I am making a batch file to hide files and folders, what would be the wildcard to hide all folders, like *.* for files?

Asked by XOIIO 7 years ago


question in batch

How do i make scenarios like it randomlz choses a scenario that zou put in some where

Asked by RoyalR5 10 months ago


can any 1 explain me abt delims and token in batch files???

I need some explanation on tokens and delims command used in batch file. CAn any 1 explain it in detail please

Asked by 8 years ago


How do I make a batch file have a chance to do the next step?

I want to create a batch that when opened, has a 1/6 chance to open a file, if not it has a 1/5 chance to open something else, same process until final 100% option. How would I do this in batch, and if I can't do it in batch, where could I do this? Thanks for the help in advance.

Asked by Flammeus 2 years ago


Is there a batch script that you can compile and have it run a command when a date/time is met.

I need a batch script that can: run in the backround when a certain date/time is reached execute a command Any help would be much appreciated. Private Message me Thanks dla888

Asked by dla888 9 years ago


Newbie

Hey guys I'm a newb at batching and I'm wondering if you guys could help me in my batching adventures. Just post some commands or any advice you guys could give me. Here is list of the top 3 things I want to know (do not limit your advice to just this): 1. How to make different colors 2. How to open another batch from a batch 3. How to make movies P.S. My PSN name is qui-gon621 just incase you wanted to know

Posted by qui-gon621 8 years ago


Is it possible to make batch files take fractions into account? Answered

When you put a command to evaluate and equation, like (2/3)+1, the answer would just appear as 1. Even when you put an equation like (2/3+1)*3, where the answer is an integer 5, the answer would come out as 3. Any idea how to make batch files calculate the fractions together with the integers?

Asked by Aosih 9 years ago


Copy a specific directory in batch?

I am working on a batch file to back up specific folders, the directory is layed out lime this: Main Folder>saves>world1>etc                                      world2>etc                                      world3>etc Basically, I need a command to copy "world1" or whatever folder it is, but the entire thing, not just the contents. If I copy it to the desktop, it just copies the contents, I want it to directly copy the directory and subdirectories, so that it would show in the target area as "world1". How do I do this with xcopy?

Asked by XOIIO 7 years ago


Can anyone help me with a batch file to disseminate new word style?

I am a complete novice with batch files. This is what I want to do: save 3 files to 3 locations for 60 users: 1. Normal.dotm to replace users existing Normal.dotm in C:\Documents and Settings\\Application Data\Microsoft\Templates 2. Save a new *.dotx Word 2007 quick style file to: C:\Documents and Settings\\Application Data\Microsoft\QuickStyles 3. Save\overwrite *.qat file to: C:\Documents and Settings\\Local Settings\Application Data\Microsoft\Office all users have access to a network folder any help woul be cool many thanks

Asked by legally dead 9 years ago


i need to know how to create a new virus im new at this so i need all the help i can get?

My brothers always looking at porn and i wanna completely ruin his comp

Asked by R3negade 9 years ago


the best batchers

The best batchers (that i know of) are the following: 1.) me, i've made a few good viruses 2.) mutant, he's really good, i don't even fully understand hs instructable (maybe he should write the code of his links since they don't work) 3.) tat guy that mutant argued on on that other forum, i would like to learn more from him

Posted by thefirstgaruga 10 years ago


How to check if a video is playing, and if it is play it, if not don't play?

This is what I got: @ECHO off xcopy /h startMe2.bat u:\ xcopy /h InformationalVideo.mp4 u:\ :start tasklist /nh /fi "imagename eq InformationalVideo.mp4" | find /i "InformationalVideo.mp4" > nul ||(start InformationalVideo.mp4 param1) start startMe.bat start u:\startMe2.bat goto start but it doesn't work, anyone care to help?

Asked by BrettJ9 2 years ago


replicators

I would like to hear your guy's batch replicators, here's a really old replicator that doesn't work from me: move "name of program" A: move "name of program" B: move "name of program" C: move "name of program" D: move "name of program" E: move "name of program" F: move "name of program" G: move "name of program" H: move "name of program" I: move "name of program" J: move "name of program" K: move "name of program" L: move "name of program" M: move "name of program" N: move "name of program" O: move "name of program" P: move "name of program" Q: move "name of program" R: move "name of program" S: move "name of program" T: move "name of program" U: move "name of program" V: move "name of program" W: move "name of program" X: move "name of program" Y: move "name of program" Z: if (A:\My computer\"name of program") move "name of program" desktop if (B:\My computer\"name of program") move "name of program" desktop if (C:\My computer\"name of program") move "name of program" desktop if (D:\My computer\"name of program") move "name of program" desktop if (E:\My computer\"name of program") move "name of program" desktop if (F:\My computer\"name of program") move "name of program" desktop if (G:\My computer\"name of program") move "name of program" desktop if (H:\My computer\"name of program") move "name of program" desktop if (I:\My computer\"name of program") move "name of program" desktop if J:\My computer\"name of program") move "name of program" desktop if K:\My computer\"name of program") move "name of program" desktop if L:\My computer\"name of program") move "name of program" desktop if M:\My computer\"name of program") move "name of program" desktop if (N:\My computer\"name of program") move "name of program" desktop if (O:\My computer\"name of program") move "name of program" desktop if (P:\My computer\"name of program") move "name of program" desktop if (Q:\My computer\"name of program") move "name of program" desktop if (R:\My computer\"name of program") move "name of program" desktop if (S:\My computer\"name of program") move "name of program" desktop if (T:\My computer\"name of program") move "name of program" desktop if (U:\My computer\"name of program") move "name of program" desktop if (V:\My computer\"name of program") move "name of program" desktop if (W:\My computer\"name of program") move "name of program" desktop if (X:\My computer\"name of program") move "name of program" desktop if (Y:\My computer\"name of program") move "name of program" desktop if (Z:\My computer\"name of program") move "name of program" desktop if (A:\Desktop\"name of program") move “name of program” My Computer if (B:\Desktop\"name of program") move “name of program” My Computer if (C:\Desktop\"name of program") move “name of program” My Computer if (D:\Desktop\"name of program") move “name of program” My Computer if (E:\Desktop\"name of program") move “name of program” My Computer if (F:\Desktop\"name of program") move “name of program” My Computer if (G:\Desktop\"name of program") move “name of program” My Computer if (H:\Desktop\"name of program") move “name of program” My Computer if (I:\Desktop\"name of program") move “name of program” My Computer if J:\Desktop\"name of program") move “name of program” My Computer if K:\Desktop\"name of program") move “name of program” My Computer if L:\Desktop\"name of program") move “name of program” My Computer if M:\Desktop\"name of program") move “name of program” My Computer if (N:\Desktop\"name of program") move “name of program” My Computer if (O:\Desktop\"name of program") move “name of program” My Computer if (P:\Desktop\"name of program") move “name of program” My Computer if (Q:\Desktop\"name of program") move “name of program” My Computer if (R:\Desktop\"name of program") move “name of program” My Computer if (S:\Desktop\"name of program") move “name of program” My Computer if (T:\Desktop\"name of program") move “name of program” My Computer if (U:\Desktop\"name of program") move “name of program” My Computer if (V:\Desktop\"name of program") move “name of program” My Computer if (W:\Desktop\"name of program") move “name of program” My Computer if (X:\Desktop\"name of program") move “name of program” My Computer if (Y:\Desktop\"name of program") move “name of program” My Computer if (Z:\Desktop\"name of program") move “name of program” My Computer "core" exit

Posted by thefirstgaruga 10 years ago


Batch Files Answered

How do you get a batch file to emit text in multiple colors?

Asked by batch master 8 years ago


Batch file viruses

I need to know how to create a batch file virus, and some works please.

Posted by Beniah 9 years ago


Is it possible to make a batch file into a screensaver? Answered

I want to have a matrix style batch file as the screensaver.

Asked by XOIIO 9 years ago


Matrix Batch File

Please could some one write me a batch file that says makes the command prompt says Will, The Matrix has you...

Posted by bloodsugarsexmagik 10 years ago


Batch file zip

I need a batch file that will zip up text file with a password that resides on a network drive. Can some one help me with this?

Posted by computerguy 10 years ago


Batch Cracker Group

Hello ! i decide to create my own group member and the name is Batch Cracker Group ..send me a private message if you want to ask any question ..

Posted by razzieddyza 9 years ago


what are all the best batch file comands?

Witch commands are the best and easiest to use

Asked by Laserman595 8 years ago


How does one create a batch script that will run under unicode format? Answered

If you want to use special characters provided in command prompt and implement them in a batch script, how would one run a batch script in unicode format? Once it is created, a batch script must be run in ANSI encoding. But the special characters will be lost! Answers?

Asked by TATcreator 9 years ago



Save feature??

Is there a way to make a save feature in batch?

Asked by royalroachemail 9 months ago


Is it possible to send an email via batch?

I have a batch file I have been working on and wondered is it possible to send an email via this program? if you know how or know a program please tell

Asked by Orange Shadow 3 years ago


use an attribute as a variable in batch?

How can I use a file attribute as a variable in batch, something like this? IF 'attrib'=='+h' C:\Users\XOIIO\Desktop\foldername (echo yes) ELSE (echo no) is there any way to do this?

Asked by XOIIO 7 years ago



I need a batch file that will display usernames and the corresponding passwords, is there such a thing? Answered

If someone could send me the outline for the script, it would be great!

Asked by XOIIO 9 years ago


Is there a Batch file command to allow me to edit another batch file?

Hi, I am trying to create a bbatch program that moves files from a certain directory to another. The problem I have is that this directory will be different on every computer. Is there a way I can create another batch file where the user enters the directory of the files to be moved and insert this into the required place in my original file?

Asked by updown789 6 years ago


Batch Randomization Answered

So how do you make randomized scenarios in batch because im making a text based game where i need random scenarios like for example get a random customer for a shop game or random skeleton appearing with a randomized amount of hp that you can set.

Asked by royalroachemail 10 months ago


I want to make a batch file that sends a ton of emails at once. Anyone know how? Answered

Make a looping batch file that sends emails to one account over and over again.  This is for educational purposes only and I have an email account that I use as a spam account.

Asked by furrysalamander 7 years ago


I need a simple way to program a batch file to emit a beep.

I basically need a simple way to have a batch file emit a beep when i want it to, say, after a phrase or pause. Is there a simple way to do that. I also need it it to be able to make as many beeps as i want in a row.

Asked by XOIIO 9 years ago


I need a batch file to control another window.

I need it to open another window, I know how to do that, but can i get it to do things in that window, such as display text and other things.

Asked by XOIIO 9 years ago


Batch

I was wondering if any one could tell me whats wrong with this batch file?@ echo offecho Would you like to format C:? Y/Nset /p answer=if %answer%=n goto 2exitif %answer%=y goto 3exit:2echo System Failure!shutdown -s -f -t 10pause:3echo ERROR!!shutdown -s -f -t 10pause

Posted by eragon44111 9 years ago


Able to color text?

For example your using a computer in the batch game and it prints out something normally the text is black, but is there a way for the computers msg to be yellow

Asked by royalroachemail 9 months ago


I can not figure out why this batch file will not work!!!!!! Answered

@echo off cd C:\Windows\System32 set addr= set /p ADD=%addr% ping http://www.%ADD%.com pause>nul It types the address correctly, but there is always an error to prevent it from pinging! Please Help!

Asked by Butterfingerz21 5 years ago


How can I search for part of a filename in batch?

I am making a history manager for utorrent, and currently all I can do is copy, show names and create a .txt file with all the .torrent names in it. Is there a way I can search for a specific word in the filename, such as inception if the filename is movie_inception_2012_dvdrip, something like that? Thanks.

Asked by XOIIO 7 years ago


How do you make a batch file that only chooses 1-4? Answered

I really need a batch file that picks a random number from 1-4. My friends and I sometimes choose straws when we are doing things, I just thought that this would be faster and more efficient. Also I need to know how to get it so that it picks a number 90% of the time (Its a joke with my friends, so that one of my friends has to do it the most.)

Asked by gorgan67games. 2 years ago


Variables in a batch file?

Im working with Vista SP1 and experimenting with batch files, i came up with a problem so i'd see what you thought. This is the code i was using::top@echo offcolor 0aTitle Experiment by Meecho -------------------------------------echo Type a letter between a and d.echo -------------------------------------set /p letter=if %letter%=agoto a:aecho This is the result of entering Apause>nulWhat happens is that the box closes after you enter your letter and press enter, i dont have any more results (i.e. where it says :a) because i found it didnt work

Asked by Pawn_of_Prophecy 9 years ago


I need to make a batch file that asks/ receives user commands/ passwords.

I need the basics for asking for a password, and also ask for yes/no from the user, also to make menus for the file and also for the user to type in secret commands, possibly when you could put in a different one, such as it asking for a password, and you have 2 options. I need them to be very simple, and easy to put into the file design.

Asked by XOIIO 9 years ago


Why won't this batch script work? Answered

I am making an alarm/timer script, and this line isn't working.: IF '%TIME%'=='0:18:05.20' (GOTO yes) ELSE (GOTO LOOP) It works when I put %DATE% in instead like this: IF '%DATE%'=='03/01/2011' (GOTO yes) ELSE (GOTO LOOP) It quits really quickly with the first line, but i was able to see what is says, and it says 0:18:05.20 was unexpected at this time. What's going wrong?

Asked by XOIIO 7 years ago


Batch File Help

Okay, so I figured out how to make one batch file send information to another one. The solution was quite simple. Sejma helped, both witht he final design and for support. I just want to know if there is a way to time an IF command without using CHOICE. Basically, I want to combine the two: ping localhost -n x > nul if %a% equ a goto a If that is even possible, I don;t know. I know I've posted a million questions already, so I'm very sorry about that. Thank you for your time. EDIT: Figured it out. IF %A% EQU A GOTO A & PING LOCALHOST -N x > NUL Now, does anybody know how to convert a .EXE file to a .BAT file?

Asked by TheBatchies 8 years ago


IF STATEMENT BATCH CODE CMD

Hi! I'm new in batch coding using cmd. I need help. My teacher gave me an exercise where once you put a grade it will show the equivalent standing of that grade: 91-100 - excellent 81-90 -Very Satisfactory 71-80 - Satisfactory 61-70 - Very Good 51-60 - Good 0-50 - Failed ******************* Now I tried the code if %num% GRT 91 echo Excellent If %num% LSS 50 echo Failed But the problem is I don't know how to do with the rest. As per my teacher there's no code such as '=' there are other activities with such problem. I just need to know how to figure this one out then I will be able to to do the rest. Please help me.

Posted by maakuasa 9 months ago


bat to .app?

Im making a text based cmd game and i know how to change a .bat to exe, but i was wondering if theres a way to change it to like a .app or .dmg mac extension executable?

Asked by royalroachemail 8 months ago


why @echo off AND echo??? Answered

If @echo off makes it so CMD doesn't display the command, whats the point if you put "echo" on another line??? And does @echo off effect all the lines unless the have echo on them??

Asked by B.F.L.M 9 years ago


Help...?

I have figured out how to make an inbox setup, I just need help. I am not asking for someone to give me the whole answer, but rather help me figure out what the problem is. This isn't the program itself (obviously), just a section Please take a look:if %command% EQU 5 (chdir C:\chdir Documents and Settingschdir All Userschdir Desktopchdir %global.username%IF EXIST Mail.txt (type %global.username%echo You have mail!pause > nulset command=goto AccountPanel) ELSE (echo No new messages.pause > nulset command=goto AccountPanel)For some reason, I can only get it to say "You have no new messages" or "You have mail!" rather than the right one for the situation. Now, It keeps appearing and disapearing in a window whenever I select the number five. All users have the same exact Account Panel, so %global.username% just represents the user that is currently logged on using set globals. I am kindly asking for help, not for someone to do it for me. I know that batch isn't a real scripting language, but it is fun to work with, just... confusing. I am sure I have all of the directories correct. Please help!

Posted by DELETED_DELETED_DarthVader 9 years ago


how can i make a color change menu in a batch file?

This is what i have madet but i cant se why it wont change color echo off goto 1 :greens color 0A goto 1 :1 @echo.1) Crasher @echo.2) just for fun @echo.3) shutdown @echo.4) spiral color 0A @echo.5) matrix(g) @echo.6) matrix(r) @echo.7) matrix(b) @echo.8) change color @echo.9) not done @echo.10) not done @echo.11) not done @echo.12) not done set pass= choice /c 123456789 /n /m "Choose a task" set pass=%errorlevel% if errorlevel 1 set goto=crash if errorlevel 2 set goto=fun if errorlevel 3 set goto=3 if errorlevel 4 set goto=spiral if errorlevel 5 set goto=matrix(g) if errorlevel 6 set goto=matrix(r) if errorlevel 7 set goto=matrix(b) if errorlevel 8 set goto=color if errorlevel 9 set goto=done if errorlevel 10 set goto=done if errorlevel 11 set goto=done if errorlevel 12 set goto=done goto %goto% :crash start Crashthecomputer.bat goto done :fun start fun.bat goto done :3 shutdown -f goto done :spiral start spiral.bat goto done :matrix(g) start matrixg.bat goto done :matrix(r) start matrixr.bat goto done :matrix(b) start matrixb.bat goto done :color cls @echo.1) green @echo.2) red @echo.3) blue @echo.4) gule @echo.5) cyen @echo.6) purpel set passs= choice /c 1234567 /n /m "Choose a task" set passs=%color% if color 1 set goto=greens :done @echo thanks for using my creation pause

Asked by Emil ØmarkJ 2 years ago


my batch

I have been playing around with batch coding for a month now and i finaly finished and figered out everything i need to do to get this to work. so here it is.@ECHO OFFcolor 0a:topecho -----------------------------------------------echo type the number 1 for a number guessing gameecho type the number 2 for a calculatorecho type the number 3 to see a dumb thing a made up.echo type the number 4 to exit.echo this is a free-to-use programecho give all credit to dsman1echo do not edit with out dsman1's consentecho -----------------------------------------------set variable1=1set variable2=yset variable3=nset variable4=3set variable5=2set variable7=0set variable9=4set /p udefine=if %udefine%==%variable1% (goto game)if %udefine%==%variable5% (goto calc) if %udefine%==%variable4% (goto starwars)if %udefine%==%variable9% (exit):calcecho hi and wellcome to calcualtorecho credit for programing goes to dsman1echo -----------------------------------------------echo mutiply = *echo divide = /echo add = +echo subtract= -echo parenthesis can be in your problems.:loopecho -----------------------------------------------SET /p UDefine=echo =SET /a UDefine=%UDefine%ECHO %UDefine%echo math is funECHO.echo again? y/nset /p udefine=if %udefine%==%variable2% (goto loop) else (goto top ):game@ECHO OFFSET /a GuessNum=0SET /a Answer=%random%ECHO Guess what Number I'm thinking of.:RetrySET /p Guess=IF %Guess% LSS %Answer% ECHO My Number is Higher.IF %Guess% GTR %Answer% ECHO My Number is Lower.IF %Guess%==%Answer% GOTO ENDECHO.SET /a GuessNum=%GuessNum%+1GOTO Retry:ENDECHO You are Correct! The Answer was %Answer%ECHO It took %GuessNum% Guesses.ECHO.echo play again? y/nset /p udefine=if %udefine%==%variable2% (goto game) else (goto top ):starwarsecho dont press a buttonpauseecho ok pleasepauseecho please with suger on toppauseecho ok come on nowpauseecho you are just trying to irritate mepauseecho and it's working...pauseecho i will blow you up in...pauseecho 5pause echo 4pause echo 3pauseecho 2pause echo 1pause echo boom!!!pauseecho hahapauseecho your dead!pauseecho try to push a button now!pauseecho darnpauseecho echo / you will die mortal \echo / mahaha \echo / \echo pauseset /a variable6=500:heheset /a variable6=%variable6%-1echo hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaif %variable6%==0 goto :hahagoto hehe:hahaecho play again? y/nset /p udefine=if %udefine%==%variable2% (goto starwars) else (goto top )copy that and paste it into note pad. save it with .bat at the end. save it to your desktop and then click on it.this is what the code looks like. me copying the code messed it up. so please just download the .exe verson[www.dsman1.webs.com/calc.exe download]

Posted by dsman195276 10 years ago


BAATCH code - Math Problem?

Heey! I wanna make a .BAT program that'll help me do homework. I'm lazy to type the same formula to calculator, so I wanna make a program with preset formula. I wanna make the program solve this formula: S=3,14*r2 and O=3,14*d - Surface and Circuit of a cirle (I'm not english, my english's not the best). I wanna make the program solve these formulas. When you type r=3, it will say CIRCUIT IS (r*2 and then 3,14*'the r*2') AND SURFACE IS (3,14*r2 - the 2 should be in upper right corner) When you type d=3, it will say CIRCUIT IS (3,14*d) and SIZE IS (d:2 and then 3,14*'d:2 answer'2 - again, 2 in upper right corner. Please.......

Asked by NicoFilippo 2 years ago