[TUTORIAL] Create a BAT file to launch several programs
|
2015-08-15, 19:22
(This post was last modified: 2015-12-03 09:35 by Ash.)
Post: #1
|
|||||||
|
|||||||
Create a BAT file to launch several programs
As requested, I have made a small tutorial on how to make a simple .bat file which will launch several programs at the click of a shortcut.
1. Open a fresh Notepad file and save it in your LFS area, calling it something like "RunLFS.bat". Make sure you select the save as type as "All Files (*.*)" else this will not work. This is an example of my RunLFS.bat file, make the adjustments to your specific needs! Code: @echo off As you can see, I have mine set to launch Logitech Profiler, Logitech Keyboard Profiler and LFS itself. Explanation: The other lines are the executables which I wish to launch. You can see there are 2 main parts. The file LOCATION and the EXECUTABLE itself. You need to have the LOCATION within the speech marks and the EXECUTABLE outside of them. I then found the actual file itself which I saved in my LFS directory, and send it to the desktop as a shortcut and changed the icon to match LFS's own one. Hope this helps, if your stuck, reply and ill give you a hand! - PS Remember to save your file when doing your changes! |
|||||||
2015-08-15, 20:25
Post: #2
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
Very nice tutorial, Ash. Thanks for posting!
This may sound like a dumb question, but can I use this method to connect to servers? Using the server IP as the location? |
|||||||
2015-08-15, 20:27
(This post was last modified: 2015-08-15 20:41 by Ash.)
Post: #3
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
Here you go...
Replace Quote:start /d "C:\Users\Ash\LFS" LFS.exe with Quote:@start lfs://join=[TC]%%20CityDriving%%20One |
|||||||
2015-08-15, 21:42
(This post was last modified: 2015-08-15 21:43 by Carl.)
Post: #4
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
Thank you!
There is a part which is a little confusing, does the .bat replace the original lfs.exe? |
|||||||
2015-08-15, 21:54
Post: #5
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
Noo the .bat file is pretty much a 'Shortcut'. Keep the lfs.exe or you wont be able to play your game lol.
The .bat is simply a script which runs commands. Somewhat like LFS Scripts |
|||||||
2015-08-16, 06:54
Post: #6
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
What about putting timer between programs cue to LFS Lazy puts insim automatically 29999 but Mary is saying error before it?
|
|||||||
|
|||||||
2015-08-16, 07:40
(This post was last modified: 2015-08-16 07:42 by Val.)
Post: #7
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
2 methods to make a timer, simply add one of these in the file :
1) The timeout command : timeout /T 1 /nobreak /T number = set time (in seconds) /nobreak = ignore key press so it won't interrupt the timer if you press a key. 2) You can "make" a timer by pinging an invalid IP address : ping 1.2.3.4 -n 1 -w 1000 >NUL -n number = number of request to send (leave it to 1) -w number = delay in milliseconds (1000 = 1 sec) |
|||||||
|
|||||||
2015-08-16, 09:08
(This post was last modified: 2015-08-16 09:09 by Otava.)
Post: #8
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
Can I make BAT file to press for example f7?
Thaks Val for response |
|||||||
|
|||||||
2015-08-16, 09:44
Post: #9
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
This thread is over my nerd level.
Might try this, need to start TurnsigV0.3, LFSlazy, LFSstrobe, etc stuff. |
|||||||
|
|||||||
2015-08-16, 10:20
Post: #10
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs | |||||||
|
|||||||
2015-08-16, 16:15
Post: #11
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
I said to, not by But now the problem is solved and I dont need to so Thanks for response
|
|||||||
|
|||||||
2015-08-16, 16:44
Post: #12
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
One thing still, can I make LFS Strobe to load the settings automatically
|
|||||||
|
|||||||
2015-08-16, 17:46
(This post was last modified: 2015-08-16 17:51 by Otava.)
Post: #13
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
Uuuh, that took me a long time.
If anybody wants a files what I use to start now just PM me or post here, it puts port automatically (needs 1 bind slot) and starts LFS and/or TC, LFSLazy, Mary and LFSStrobe with settings |
|||||||
|
|||||||
2015-08-23, 10:12
Post: #14
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
I use a .bat-file to start LFS and other programs like Mary for months. It's worth it, because i can start everything with one file now!
|
|||||||
|
|||||||
2015-08-23, 11:11
(This post was last modified: 2015-08-23 11:13 by VirtualTourist.)
Post: #15
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
Or just use autoexec.lfs script.
/insim 29999 /exec Mary.exe /exec LFSLazy.exe Edit: Hmm I see. You guys are a next level nerdy. |
|||||||
|
|||||||
2015-08-25, 14:35
Post: #16
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
@virtualtourist, i use that in combination with a .bat-file that makes a back-up of the message-log of the last session.
|
|||||||
|
|||||||
2015-11-08, 14:46
Post: #17
|
|||||||
|
|||||||
RE: [TUTORIAL] Create a BAT file to launch several programs
Sharing how I use this
Main batch LFS-TC.bat Wrote:@echo offand the "F7.vbs" F7.vbs Wrote:Set oShell = CreateObject("WScript.Shell")Hopefully someone found this useful |
|||||||
|
|||||||
2015-12-03, 15:15
Post: #18
|
|||||||
|
|||||||
RE: Create a BAT file to launch several programs
I use .bat-files and LFS Scripts for about a half year, and it's worth the pain!
|
|||||||
|
|||||||
2016-01-10, 22:38
Post: #19
|
|||||||
|
|||||||
RE: Create a BAT file to launch several programs
So I had this for quite a while now, but my question is, how to turn this off?, my LFS Lazy is broken so it won't connect to port 29999, and I want to change this, but I can't find the .bat file I made like a year ago..
Here is a screenshot of my LFS folder. Thanks in advance. |
|||||||
|
|||||||
2016-01-10, 22:44
Post: #20
|
|||||||
|
|||||||
RE: Create a BAT file to launch several programs
(2016-01-10 22:38)HellaFlush Wrote: So I had this for quite a while now, but my question is, how to turn this off?, my LFS Lazy is broken so it won't connect to port 29999, and I want to change this, but I can't find the .bat file I made like a year ago.. Well you use the .bat file to launch LFS right? If its a shortcut, right click it and find the destination area through the properties. |
|||||||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies: | Views: | Last Post | |
[TUTORIAL] - Wifipad - How to create and use! | McGherkin | 104 | 125,529 |
2015-08-10 17:32 Last Post: Jacob |
|
[TUTORIAL] Create Your Own Chatlog | Ash | 9 | 12,853 |
2015-08-10 14:16 Last Post: Roy |
User(s) browsing this thread: 1 Guest(s)
Powered By MyBB, © 2002-2025 MyBB Group