Search found 35 matches

by SirJosh3917
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: 2242

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...
by SirJosh3917
08 Aug 2017 22:18
Forum: DOS Batch Forum
Topic: Manually compressing batch files
Replies: 5
Views: 1636

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...
by SirJosh3917
02 Feb 2017 20:01
Forum: DOS Batch Forum
Topic: Multiple forum sections?
Replies: 7
Views: 1877

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'...
by SirJosh3917
02 Feb 2017 12:50
Forum: DOS Batch Forum
Topic: [Release] NETCHK - A simple solution to handle checking .NET for you!
Replies: 1
Views: 1070

[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...
by SirJosh3917
02 Feb 2017 12:37
Forum: DOS Batch Forum
Topic: Multiple forum sections?
Replies: 7
Views: 1877

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"
by SirJosh3917
02 Feb 2017 12:35
Forum: DOS Batch Forum
Topic: Get all Wmic information quickly
Replies: 4
Views: 1853

Re: Get all Wmic information quickly

Code: Select all

wmic os>info.txt

Is this not what you're looking for?
by SirJosh3917
30 Nov 2016 10:49
Forum: DOS Batch Forum
Topic: SANITIZE.EXE - Sanitize user input and prevent code injection
Replies: 2
Views: 1024

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...
by SirJosh3917
30 Nov 2016 09:44
Forum: DOS Batch Forum
Topic: SANITIZE.EXE - Sanitize user input and prevent code injection
Replies: 2
Views: 1024

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 "&"...
by SirJosh3917
30 Nov 2016 09:22
Forum: DOS Batch Forum
Topic: Asterisk masking in For loop: best practice?
Replies: 7
Views: 2036

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

Code: Select all

SET SANITIZED=%UNCLEAN:^&=^_%

for any chars that happen to make the batch script mad?
by SirJosh3917
30 Nov 2016 09:00
Forum: DOS Batch Forum
Topic: Why won't number variables work?
Replies: 2
Views: 1428

Re: Why won't number variables work?

Ahh, silly me. I completely forgot about those :P
Thank you however for clearing that up :D
by SirJosh3917
29 Nov 2016 23:41
Forum: DOS Batch Forum
Topic: Why won't number variables work?
Replies: 2
Views: 1428

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...
by SirJosh3917
29 Nov 2016 17:23
Forum: DOS Batch Forum
Topic: INIT.EXE - Simple tool to help you out using IEXPRESS.EXE
Replies: 0
Views: 2358

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...
by SirJosh3917
28 Nov 2016 14:51
Forum: DOS Batch Forum
Topic: Simple way to show all files/folders with dir
Replies: 2
Views: 994

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.
by SirJosh3917
20 Nov 2016 10:35
Forum: DOS Batch Forum
Topic: Does an attatchment's download link stay the same?
Replies: 0
Views: 1760

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?
by SirJosh3917
29 Oct 2016 13:52
Forum: DOS Batch Forum
Topic: HTML Batch String Parser
Replies: 3
Views: 1625

Re: HTML Batch String Parser

There is a bug in your code: The percentage sign ('%') cannot be escaped using "^%", it has to be escaped using "%%". penpen Command prompt says C:\Users\__>set a=b C:\Users\__>echo ^%a^% %a% C:\Users\__>echo %%a%% %b% :\Users\__> But a batch file crashes with ^%a^% Is there any...