Search found 36 matches
- 29 May 2020 17:18
- Forum: DOS Batch Forum
- Topic: Performance & Optimization of Batch Files
- Replies: 3
- Views: 5466
Performance & Optimization of Batch Files
Hi y'all. I wanted to know, is there a centralized list of knowledge to optimize performance in batch files? Readability and maintainability is not a concern - I'll be using these tips and trips to auto-generate some fast batch code at some point in the future. Currently, I've assembled this list of...
- 01 Aug 2019 16:24
- Forum: DOS Batch Forum
- Topic: B A T C H R E C U R S I O N exceeds STACK limits
- Replies: 3
- Views: 7842
B A T C H R E C U R S I O N exceeds STACK limits
Hi, I recently got this message printed to me - is this documented anywhere? is this known? https://upl.sirjosh3917.com/ShamelessButterfly.png This message I did not write: ****** B A T C H R E C U R S I O N exceeds STACK limits ****** Recursion Count=593, Stack Usage=90 percent ****** B A T C H PRO...
- 08 Aug 2017 22:18
- Forum: DOS Batch Forum
- Topic: Manually compressing batch files
- Replies: 5
- Views: 7529
Manually compressing batch files
Here, look at this. @echo off set /a iteration=0 :S echo # echo # # echo # # echo # # echo # DISCO! # echo # # echo # # echo # # echo # call :col %iteration% set /a iteration=%iteration% + 1 cls if %iteration% == 6 set iteration=0 goto s :col if %~1 == 0 color a if %~1 == 1 color b if %~1 == 2 color...
- 02 Feb 2017 20:01
- Forum: DOS Batch Forum
- Topic: Multiple forum sections?
- Replies: 7
- Views: 8275
Re: Multiple forum sections?
Can we at least have two sections? One for batch questions and the other for releases? I'd like to have my releases and applications (peas) to download one one side of my plate, and questions (corn) on the other. It'd make it easier then to have both peas and corns all jumbled in the middle, and it'...
- 02 Feb 2017 12:50
- Forum: DOS Batch Forum
- Topic: [Release] NETCHK - A simple solution to handle checking .NET for you!
- Replies: 1
- Views: 3843
[Release] NETCHK - A simple solution to handle checking .NET for you!
I released NETCHK for a different forum, but I believe it holds some value here. You open it with notepad, set the .NET Framework, and then bundle it with your .NET X.X application. NETCHK automatically checks .NET Framework with your OS version to make sure you are capable of getting .NET X.X You m...
- 02 Feb 2017 12:37
- Forum: DOS Batch Forum
- Topic: Multiple forum sections?
- Replies: 7
- Views: 8275
Multiple forum sections?
Wouldn't it be better if the forum had multiple sections, for a cleaner forum?
e.g.
"Batch File Releases"
"External EXE Releases"
"Batch Questions"
"Forum Discussion"
e.g.
"Batch File Releases"
"External EXE Releases"
"Batch Questions"
"Forum Discussion"
- 02 Feb 2017 12:35
- Forum: DOS Batch Forum
- Topic: Get all Wmic information quickly
- Replies: 4
- Views: 7368
Re: Get all Wmic information quickly
Code: Select all
wmic os>info.txt
Is this not what you're looking for?
- 30 Nov 2016 10:49
- Forum: DOS Batch Forum
- Topic: SANITIZE.EXE - Sanitize user input and prevent code injection
- Replies: 2
- Views: 4320
Re: SANITIZE.EXE - Sanitize user input and prevent code injection
I am afraid I don't understand the purpose of this program. If the idea is to avoid the problems that may happen when the user input is expanded via %standard% expansion, just use !delayed! expansion instead... Antonio Oh... My bad... I mean I guess it has some use when not using setlocal enabledel...
- 30 Nov 2016 09:44
- Forum: DOS Batch Forum
- Topic: SANITIZE.EXE - Sanitize user input and prevent code injection
- Replies: 2
- Views: 4320
SANITIZE.EXE - Sanitize user input and prevent code injection
So we all know that just about any batch file can become hacked by typing in "&call LeetBatchFileToGiveMeAllTheHackingPower.bat" whenever it prompts you with input. SANITIZE.EXE fixes this, by doing the following: 1) getting the user input 2) removing all instances of "&"...
- 30 Nov 2016 09:22
- Forum: DOS Batch Forum
- Topic: Asterisk masking in For loop: best practice?
- Replies: 7
- Views: 8210
Re: Asterisk masking in For loop: best practice?
I'm not entirely sure, but is it possible you could do something along the lines of
for any chars that happen to make the batch script mad?
Code: Select all
SET SANITIZED=%UNCLEAN:^&=^_%
for any chars that happen to make the batch script mad?
- 30 Nov 2016 09:00
- Forum: DOS Batch Forum
- Topic: Why won't number variables work?
- Replies: 2
- Views: 4674
Re: Why won't number variables work?
Ahh, silly me. I completely forgot about those
Thank you however for clearing that up
Thank you however for clearing that up
- 29 Nov 2016 23:41
- Forum: DOS Batch Forum
- Topic: Why won't number variables work?
- Replies: 2
- Views: 4674
Why won't number variables work?
I'm being weird only for fun in this scenario and I came across this weird thing: Why won't this work? @set "a=@set " %a%1=TEST %a%b=ING @echo %1%%b% ::The result SHOULD be "TESTING", but no, for it is only "ING" So my question is why? I ran into this in C# where I coul...
- 29 Nov 2016 17:23
- Forum: DOS Batch Forum
- Topic: INIT.EXE - Simple tool to help you out using IEXPRESS.EXE
- Replies: 0
- Views: 7577
INIT.EXE - Simple tool to help you out using IEXPRESS.EXE
Have you ever used IEXPRESS.EXE only to realize that it requires an exe to launch your SED - not a batch file? INIT.EXE is a very small and simple tool designed to fix that. It works very simple - it runs a batch file called "init.bat". Source code is on github and the releases are on gith...
- 28 Nov 2016 14:51
- Forum: DOS Batch Forum
- Topic: Simple way to show all files/folders with dir
- Replies: 2
- Views: 3812
Simple way to show all files/folders with dir
Code: Select all
dir /b /s /a:
I'd just think to share my findings as I wanted to show all visible directories, visible files, invisible directories and invisible files.
Tell me if you found this useful.
- 20 Nov 2016 10:35
- Forum: DOS Batch Forum
- Topic: Does an attatchment's download link stay the same?
- Replies: 0
- Views: 6563
Does an attatchment's download link stay the same?
Just a silly question I had. Does an attachment's download link stay the same even after changing the file (and giving it the exact same name)?
What are the rules for the download links of attachments programmatically?
What are the rules for the download links of attachments programmatically?