![]() |
IOBit Software
|
|
|
||||||
| Programming Place to discuss programming including HTML, Java, C++, MySQL and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I need a batch file that will open a file at random. For example I can write a batch that will open all the files I specify in a list, but I want to list all the files out and then have the batch open only one and chose the file to open completely randomly. Then once the file is closed, I want the batch file to open another file on the list at random
possible? |
| Sponsored links |
|
|
|
#2
|
||||
|
||||
|
|
|
#3
|
|||
|
|||
|
Here is a simple example
create a text file on your desktop open it In the below example the exe is M2Server Once you enter the code enter a name for the file and add the extension .bat When you hit save it should create a new file that looks like a gear. This will be your batch file and it should run just like an executable when you double click it. Code:
@echo off rem M2Server cd C:\Mirserver\M2Server start M2Server.exe exit |
|
#4
|
||||
|
||||
|
@TimLANWAN what kind of files are these? if they are executables thn you might be looking at a potential fork bomb..
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Open a random file batch | brunchmiracle | Programming | 9 | 01-29-12 20:08 |
| Excel File Windows Open at Random Sizes | GatorDave | Software | 2 | 06-23-11 08:14 |
| Batch program - How could i open a random image from a specified folder? | syeuk2002 | Programming | 2 | 02-27-09 18:07 |
| Random file??? HELP! | zygmore | Malware Removal | 4 | 02-10-05 18:07 |
| Get tons of random popups, even without explorer window open | GMXMan | Malware Removal | 5 | 07-11-04 19:19 |