Search found 1621 matches

by Aacini
24 Jan 2020 09:39
Forum: DOS Batch Forum
Topic: Ultimate MSDOS interactive dynamic menu with Powershell quirk
Replies: 1
Views: 124

Re: Ultimate MSDOS interactive dynamic menu with Powershell quirk

scavenger wrote:
20 Jan 2020 00:33

This batch is dedicated to @Aacini, one of the greatest MSDOS geniuses around 8)
:D :wink: :mrgreen:
by Aacini
12 Dec 2019 11:45
Forum: DOS Batch Forum
Topic: The most primitive XML writer (just for fun)
Replies: 7
Views: 696

Re: The most primitive XML writer (just for fun)

siberia-man wrote:
11 Dec 2019 03:49
.....
I presume there could be a lot of complexity to be never developed because of batch syntax limitation.
Perhaps you could be interested in my TextToHtml.bat conversion program with a lot of features...

Antonio
by Aacini
06 Dec 2019 07:14
Forum: DOS Batch Forum
Topic: A dual Batch+CSS script to convert Markdown to HTML
Replies: 4
Views: 600

Re: A dual Batch+CSS script to convert Markdown to HTML

This remembers me my old TextToHtml.bat program that converts a BBCode-style text file into a HTML complete page although it is not an hybrid program, but a pure Batch file...

Antonio
by Aacini
06 Dec 2019 06:37
Forum: DOS Batch Forum
Topic: CmdRunner - 3d game (CubeRunner clone)
Replies: 43
Views: 9086

Re: CmdRunner - 3d game (CubeRunner clone)

si se puede romper un bucle For /l @echo off @title rompiendo bucle :main for /L in (0,1,990) do ( if "%%A"=="50" (goto :salirLoop) cls echo. EL BUCLE TERMINADA EN : 50 echo. %%A ) goto :main :salirLoop echo. salio del bucle pause cls exit goto :salirLoop The short answer is No. The loop continues ...
by Aacini
21 Nov 2019 05:51
Forum: DOS Batch Forum
Topic: NEWBIE HERE :)
Replies: 3
Views: 743

Re: NEWBIE HERE :)

Perhaps you would like to review my Tetris game, or its Tetris in color version, or my Viboras.bat in color version of snake game...

Antonio
by Aacini
20 Nov 2019 00:05
Forum: DOS Batch Forum
Topic: Employee clock in / clock out .bat
Replies: 10
Views: 1007

Re: Employee clock in / clock out .bat

Perhaps this answer may help you...

Antonio
by Aacini
30 Oct 2019 06:47
Forum: DOS Batch Forum
Topic: help for command
Replies: 5
Views: 2671

Re: help for command

So your question is intended just for people that know Unix, right?

Sorry, but I don't know Unix. Perhaps if I could see what is the result you want, I could write a Batch script for that...

Or you may post this request on a Unix forum.

Antonio
by Aacini
09 Oct 2019 10:30
Forum: DOS Batch Forum
Topic: Remove Microsoft header from cmd, for example when executing code from alternate data stream
Replies: 10
Views: 7303

Re: Remove Microsoft header from cmd when executing code from alternative data stream

Mmmm... A couple remarks about your post... In first place, your problem is not related to Alternate Data Streams. The same effect happen when you redirect any text file into cmd.exe in that way. The simplest way to avoid the initial cmd.exe message is using this format: cmd /d /q < %adsfile%:test1 ...
by Aacini
07 Oct 2019 11:54
Forum: DOS Batch Forum
Topic: [SOLVED] If one of two files exist then do something.
Replies: 18
Views: 9577

Re: If one of two files exist then do something.

You don't need the auxiliary f3 variable; just ask for %bitset% less than 4 to know if File3.exe is missing. You may also do some simplifications: set /A bitset=0, bit=1 for %%f in (File1.exe File2.exe File3.exe) do ( if exist "%userprofile%\Desktop\%%f" set /A "bitset|=bit" set /A "bit<<=1" ) if %b...
by Aacini
19 Sep 2019 02:13
Forum: DOS Batch Forum
Topic: [Resolved] For loop to do something with all variables beginning with a string [also find variables order of appearance]
Replies: 10
Views: 6358

Re: [Resolved] For loop to do something with all variables beginning with a string [also find variables order of appeara

You may achieve the same result in simpler ways. For example: @echo off setlocal enabledelayedexpansion rem Below there is a method to define variables by putting them in a FOR command. rem Optionally you may also define a list of variables this way: rem set values="example-one=value" "example-two=v...
by Aacini
18 Sep 2019 08:56
Forum: DOS Batch Forum
Topic: [Resolved] For loop to do something with all variables beginning with a string [also find variables order of appearance]
Replies: 10
Views: 6358

Re: For loop to do something with all variables beginning/prefixed with a string

No. There is no way to control the order in that SET command lists the defined variables; that is the reason because it is convenient to define different arrays with numerical indices...

I suggest you to review this topic...

Antonio
by Aacini
12 Sep 2019 11:13
Forum: DOS Batch Forum
Topic: ProgramA closes and ProgramB closes automatically
Replies: 3
Views: 2417

Re: ProgramA closes and ProgramB closes automatically

Try: @echo off start "" "C:\Users\Viktor\Documents\FreeFileSync Auftraege\RealTimeSync Auftraege\RealTime_(.minecraft-GoogleDrive)_[Mirror].ffs_real" start "" "C:\Users\Viktor\Documents\FreeFileSync Auftraege\RealTimeSync Auftraege\RealTime_(.minecraft-Backupfolder)_[Mirror].ffs_real" ( start "" "C:...
by Aacini
05 Sep 2019 05:14
Forum: DOS Batch Forum
Topic: rename files in a directory in a batch
Replies: 3
Views: 1888

Re: rename files in a directory in a batch

Your problem description is confusing an incomplete. You should describe the problem using plain English instead of examples or code segments. If a real filename does not match the examples shown, the method may fail. The code segments may lead to wrong assumptions. For example, I don't know Foxpro,...
by Aacini
04 Sep 2019 15:55
Forum: DOS Batch Forum
Topic: Send certutil output directly to a variable instead of file, and then finally copy to clipboard?
Replies: 6
Views: 4278

Re: Send certutil output directly to a variable instead of file, and then finally copy to clipboard?

I prefer the redirection < syntax because it is more efficient. The | pipe requires the execution of two additional copies of cmd.exe

Antonio