Search found 1567 matches

by Ed Dyreen
01 Feb 2019 17:49
Forum: DOS Batch Forum
Topic: Short WAV files-is there no standard player to call from batch?
Replies: 28
Views: 9454

Re: Short WAV files-is there no standard player to call from batch?

It also depends on the compression algorithm used to reduce the resulting filesize (although most decompressions only need the computational power of a 386er...). Hey, not too rough ! It takes a 386sx 4MBram 33Mhz (1982 ) little processing power to play a wav, unless you had a sound-card that did n...
by Ed Dyreen
29 Jan 2019 09:12
Forum: DOS Batch Forum
Topic: Short WAV files-is there no standard player to call from batch?
Replies: 28
Views: 9454

Re: Short WAV files-is there no standard player to call from batch?

My interest in this was to find a solution to quickly and rapidly play mechanical or electronic typing sounds from a small wav file or files, each file having only one typewriter keystroke or carriage return sound. htaplayer would not be a good fit for this, and the best I could come up with is the...
by Ed Dyreen
28 Jan 2019 07:38
Forum: DOS Batch Forum
Topic: could anybody help with dos commands for this task
Replies: 16
Views: 2409

Re: could anybody help with dos commands for this task

Because of US law getting login details like password for my computer. is not allowed to be shared here in working code.

How to get help for a batch script - quickly!
by Ed Dyreen
24 Jan 2019 06:01
Forum: DOS Batch Forum
Topic: I need some help Please
Replies: 3
Views: 648

Re: I need some help Please

$00=%00 $01=%01 .... There must exist some files in local directory that have char '%' in their filename. Only then for /f "delims=" %%I in ('dir /b /a-d^| find "%%"') do ( will enumerate. SET "var1=%%I" var1=%00filename.extension. I added %00 to get a match later in your code. FOR /f "tokens=2delim...
by Ed Dyreen
24 Jan 2019 05:31
Forum: DOS Batch Forum
Topic: Why does SET performance degrade as environment size grows?
Replies: 31
Views: 17745

Re: Why does SET performance degrade as environment size grows?

This is great info :D @Aacini, I used your analysis results to optimize my code. I have a few hundreds of variables stored on disk that all follow the same analogy; set variable=data. where variable is fileName and data can be anything from 0 to 8k of data. I used sort.EXE to get an alphabetical fil...
by Ed Dyreen
22 Jan 2019 17:31
Forum: DOS Batch Forum
Topic: Numbers in batch game code not making sense
Replies: 3
Views: 635

Re: Numbers in batch game code not making sense

if +%storval9% EQU 0 if +%c% EQU 1 if +%keyval2% EQU 0 ( echo. echo.This chest is locked, and you do not have the key. echo. echo.1) Leave. echo.2) Try to pick the lock. echo. set /P "c2=" setlocal enableDelayedExpansion :: ( if !c2! EQU 1 call :monostore2 if !c2! EQU 2 if !plloc! GTR 99 ( echo. ec...
by Ed Dyreen
22 Jan 2019 11:06
Forum: DOS Batch Forum
Topic: Foxidrive has left us
Replies: 26
Views: 9373

Re: Foxidrive has left us

On se demande parfois si la vie a un sens,
et puis on rencontre des êtres qui donnent
un SenS à la vie. [Brassaï]
by Ed Dyreen
19 Jan 2019 07:21
Forum: DOS Batch Forum
Topic: Macros with parameters appended
Replies: 29
Views: 18741

Re: Macros with parameters appended

Sure. The old \n was defined as ^^^<LF><LF>^<LF><LF>^^ After parsing the definition, the actual stored value is ^<LF><LF>^ When included at the end of a macro definition line, the ^<LF><LF> inserts a single <LF> into the macro definition, and the trailing ^ escapes the (<CR>)<LF> at the end of the ...
by Ed Dyreen
09 Jan 2019 04:25
Forum: DOS Batch Forum
Topic: Batch file help. Needing to position windows.
Replies: 15
Views: 1794

Re: Batch file help. Needing to position windows.

cmdow is a 32bit app which can do that too.
by Ed Dyreen
08 Jan 2019 05:13
Forum: DOS Batch Forum
Topic: save playlist as unicode or ?
Replies: 7
Views: 1126

Re: save playlist as unicode or ?

Changing it to code page 65001 (UTF-8) is even better when dealing with file names, because it handles all Unicode characters, not just the 256 in your system code page. But changing it to CP 65001 is more tricky when reading or writing files contents, as (contrary to Linux) very few files contain ...
by Ed Dyreen
08 Jan 2019 02:27
Forum: DOS Batch Forum
Topic: save playlist as unicode or ?
Replies: 7
Views: 1126

Re: save playlist as unicode or ?

If I always adjust my batch to use the users windows explorer code page, could batch crash ? How do I figure out which code page windows explorer is using ? I do not want these types of code page errors to occur when my programs are used by others. What can I do ? Is it possible to have the visible ...
by Ed Dyreen
07 Jan 2019 12:54
Forum: DOS Batch Forum
Topic: save playlist as unicode or ?
Replies: 7
Views: 1126

Re: save playlist as unicode or ?

Try to change the codepage to your default ANSI codepage (probably 1252) at the beginning of the script. As long as the characters are representable in ANSI it should work. Steffen The output written to the file is correct. Thanks. :D Why is explorer using a different codepage ? Now i see the wrong...
by Ed Dyreen
07 Jan 2019 08:46
Forum: DOS Batch Forum
Topic: save playlist as unicode or ?
Replies: 7
Views: 1126

save playlist as unicode or ?

I was having some problems trying to play some MP3 files. Délinquant - LIM - Track 7.MP3 Using the code >"%~n0.m3u" ( for %%@ in ( ape, mp3, dts, flac, wav, mid, m4a, wma, mp4, flv ) do 2>nul dir /B /A-D /S "%~dp0*.%%@" &&set /A $ += 1 ) VLC goes nuts, I open the M3U file and I find that every occur...
by Ed Dyreen
07 Dec 2018 15:20
Forum: DOS Batch Forum
Topic: Getting "The syntax of the command is incorrect" error when running batch
Replies: 2
Views: 512

Re: Getting "The syntax of the command is incorrect" error when running batch

@echo off set "hr=%time:~0,2%" if exist "Archive*.tib" if "%hr:~0,1%" equ " " set "hr=0%hr:~1,1%" if exist "Archive*.tib" ( echo. ren "Archive*.tib" "Backup_%date:~-4,4%_%date:~-10,2%_%date:~-7,2%_%hr%_%time:~3,2%_%time:~6,2%.tib" ) echo. start "" "C:\DeltaCopy\deltac.exe" localbak.dcp pause exit 0...