Search found 184 matches
- 29 Mar 2025 08:28
- Forum: DOS Batch Forum
- Topic: 3D rotating donut
- Replies: 5
- Views: 4239
Re: 3D rotating donut
replace set "_SIN=a-a*a/1920*a/312500+a*a/1920*a/15625*a/15625*a/2560000-a*a/1875*a/15360*a/15625*a/15625*a/16000*a/44800000" with set "_SIN=a-a*a/20000*a/30000+a*a/20000*a/30000*a/40000*a/50000-a*a/20000*a/30000*a/40000*a/50000*a/60000*a/70000" this is the issac newton or the 4th order taylor expan...
- 27 Mar 2025 02:26
- Forum: DOS Batch Forum
- Topic: string replacer for 1 file but it needs looping to replace many OldStrings with NewStrings
- Replies: 2
- Views: 2108
Re: string replacer for 1 file but it needs looping to replace many OldStrings with NewStrings
thanks it worked well, you actually make the SR.EXE (string replacer.exe) in your script. and i tried to make a subroutine out of it CALL :SR FILE "%%~a", it also worked but AA='s ECHO %FIND% has different strings than BB='s ECHO %FIND%, i spent several hours to find the reason, but none found by th...
- 17 Mar 2025 19:55
- Forum: DOS Batch Forum
- Topic: string replacer for 1 file but it needs looping to replace many OldStrings with NewStrings
- Replies: 2
- Views: 2108
string replacer for 1 file but it needs looping to replace many OldStrings with NewStrings
a difficult part of updating a software is NOT replacing an EXE or DLLs it is about how to re-modify INI and CONF again whose filesizes vary from 50k ~ 250K frequently, finding target strings causes a lot of headache in large files. i hope to put an end to this, my initial batch drawing board looks ...
- 03 Mar 2025 18:55
- Forum: DOS Batch Forum
- Topic: making a "CTRL-C" clipboard TXT file to save its history then pulls UP its contents
- Replies: 1
- Views: 2003
Re: making a "CTRL-C" clipboard TXT file to save its history then pulls UP its contents
a trial Clip4TB-append.txt has *****----- aaa *****----- bbb *****----- ccc *****----- ddd ***************************************************** REM my attempt starts from here @ECHO OFF SET FS=m:\Clip4TB-append.txt FOR /F %%V IN ('TYPE "%FS%" ^| FIND /C "*****-----"') DO SET C1=%%V ECHO. IF %C1% LS...
- 02 Mar 2025 09:41
- Forum: DOS Batch Forum
- Topic: making a "CTRL-C" clipboard TXT file to save its history then pulls UP its contents
- Replies: 1
- Views: 2003
making a "CTRL-C" clipboard TXT file to save its history then pulls UP its contents
Clip4TB-append.txt has like the below before *****----- 1 *****----- 2 *****----- 3 *****----- 4 after *****----- 2 *****----- 3 *****----- 4 1,2,3,4 from the above represent the contents of clipboard made by CTRL-C i need to make a "CTRL-C" clipboard to save its history if Clip4TB-append.txt has FO...
- 24 Feb 2025 22:22
- Forum: DOS Batch Forum
- Topic: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question
- Replies: 4
- Views: 2629
Re: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question
Clip2TXT.VBS halts and throws up an error message if the context has any form of picture icons or unicode next i tried GetClip.exe form the link, it did what Clip2TXT.VBS did the same way but it didnt throw up an error, it gave all it could do. so i chose getclip. i sent autohotkey's forum my 1st po...
- 23 Feb 2025 11:26
- Forum: DOS Batch Forum
- Topic: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question
- Replies: 4
- Views: 2629
Re: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question
Clip2TXT.VBS has Set objHTML = CreateObject("htmlfile") ClipboardText = objHTML.ParentWindow.ClipboardData.GetData("text") path = "C:\ZTREE\F9\Clip4TB.txt" Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(path, 2, true) objFile.WriteLine ClipboardText objFil...
- 23 Feb 2025 06:09
- Forum: DOS Batch Forum
- Topic: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
- Replies: 8
- Views: 3443
Re: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
>This indicates that you're running code in DosBox that implements its own command line interpreter. It inherently supports only a narrow subset of the commands of the old "command.com". i actually do not know what it means however my dosboxx path goes like this path=C:\;E:\Utility\DOSBox-X\BatchBox...
- 22 Feb 2025 22:52
- Forum: DOS Batch Forum
- Topic: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
- Replies: 8
- Views: 3443
Re: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
cmd /v /c " (for /f "delims=" %%a in ('dir /s/b/ad M:\0') do @set "N=%%~nxa" &set "n2=!n:~0,2!" &if NOT defined _!n2! (set "_!n2!=1" &echo T!n2!) else set "nx=T!n:~0,2!_!n:~2,3!" &if not defined !__nx! (set "__!nx!=3" & echo T!nx! -!n!) )&for /f "delims==" %%aa in ('set _') do @set "%%aa=" " is it o...
- 22 Feb 2025 22:45
- Forum: DOS Batch Forum
- Topic: how to get the string after "REG_SZ" or "REG_DWORD"?
- Replies: 6
- Views: 4453
Re: how to get the string after "REG_SZ" or "REG_DWORD"?
>I don't know if parenthesis ( "(" and ")" ) are part of the string. FOR /F "tokens=1,2 delims=~" %%A in (%WallP1:REG_SZ=~%) DO (SET Word1=%%A &SET Word2=%%B) i tried and it caused an error that said, system can not find wallpaper reg query "HKCU\some program\name" /v "wallpaper in this case" could ...
- 22 Feb 2025 22:19
- Forum: DOS Batch Forum
- Topic: CTRL-C "copy to clipboard", is there a way to make it a file? and extra question
- Replies: 4
- Views: 2629
CTRL-C "copy to clipboard", is there a way to make it a file? and extra question
CTRL-C this "copy to clipboard", is there a way to make (or force CTRL-C) it a file too just by clicking a CTRL-C? if so then, my TB(DOS True Basic compiler) would be able to include the "file's content" into the TB editor from dosboxx. if not... i need to disable CTRL-C and replace it with CTRL-C o...
- 22 Feb 2025 05:13
- Forum: DOS Batch Forum
- Topic: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
- Replies: 8
- Views: 3443
Re: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
>What exactly forces you to use this naming convention my simple DOS path goes like this path =C:\;C:\Batch; C:\Batch contains about 200 batches T stands for True Basic(TB) in a batch name i have more than a 1000 of Tbasic files i wrote plus about 1000 numerical subroutines i could barely find where...
- 20 Feb 2025 02:12
- Forum: DOS Batch Forum
- Topic: how to get the string after "REG_SZ" or "REG_DWORD"?
- Replies: 6
- Views: 4453
Re: how to get the string after "REG_SZ" or "REG_DWORD"?
i got it working after searching 4 hours all day on the internet, none worked or too long and not worked at the same time except for one from this forum, which i didnt understand swapping but i am getting there REM -------luckily left trim was not needed but.... string swapping REG_SZ with ~ FOR /F ...
- 19 Feb 2025 09:23
- Forum: DOS Batch Forum
- Topic: how to get the string after "REG_SZ" or "REG_DWORD"?
- Replies: 6
- Views: 4453
Re: how to get the string after "REG_SZ" or "REG_DWORD"?
reg query "%WallReg%" /v "Wallspaper" " (1) Wallpaper (2) REG_SZ (3) m:\GRAN (4) D (5) D001.BMP" i thought i got this by reading the last string but when the last was broken, it went back to the drawing board how would i universally get the string "m:\GRAN D D001.BMP" with spaces when the reg could ...
- 19 Feb 2025 08:51
- Forum: DOS Batch Forum
- Topic: Change desktop wallpaper
- Replies: 21
- Views: 31878
Re: Change desktop wallpaper
to me, in order to change the wallpaper, these 3 commands were required from the forum, removing the wallpaper is also the part of changing and must work 1) reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v Wallpaper /t REG_SZ /d image.jpg /f 2) reg delete "%WallReg%" /v Wa...