Search found 1529 matches

by Ed Dyreen
09 Jan 2019 04:25
Forum: DOS Batch Forum
Topic: Batch file help. Needing to position windows.
Replies: 15
Views: 196

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: 116

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: 116

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: 116

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: 116

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
10 Dec 2018 05:17
Forum: DOS Batch Forum
Topic: doskit XP/server2003 DEMO
Replies: 3
Views: 796

Re: doskit XP/server2003 DEMO

Finally a working demo ! I included "byteCode.CMD" and "tstbyteCode.CMD" so you do not have to run doskit to convert the "Hello World !" program. Latest is DEMO version 20181203 in attachment below. -In §parser, now supports bytecode initialization. -In §parser, fixed broken overflow detection and s...
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: 124

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...
by Ed Dyreen
06 Dec 2018 13:02
Forum: DOS Batch Forum
Topic: Creating a folder with today's date
Replies: 5
Views: 256

Re: Creating a folder with today's date

So the other option is to use WMIC to get the date and time because it always outputs in the same format on all computers regardless of region settings. I get, "please wait while WMIC is being installed." when I run it for the first time. This is a bummer, when a users selects WMIC to be installed ...
by Ed Dyreen
06 Dec 2018 00:53
Forum: DOS Batch Forum
Topic: Ampersand is directory name - Batch not working
Replies: 2
Views: 134

Re: Ampersand is directory name - Batch not working

Hallo! Ich bin momentan auf der Suche nach einer Lösung für folgendes Problem: Biespiel 1 (WORKING) C:\Test and Test\script.bat in diesem file steht folgendes: start "Firefox" "C:\Program Files\Mozilla Firefox\firefox.exe" http://www.google.com Klickt auf die .bat-datei öffnet sich der browser und ...
by Ed Dyreen
04 Dec 2018 12:49
Forum: DOS Batch Forum
Topic: Remove characters from text file
Replies: 4
Views: 204

Re: Remove characters from text file

I solved my own problem, here is the code: for /f "tokens=*" %%D in (example.txt) do ( set texte=%%D set texte=!texte:~8! set texte=!texte:~0,-19! echo "!texte: = !" >> temp.txt ) type temp.txt > example.txt del temp.txt for /F delims^=^ eol^= %%r in (example.txt) do ( set "texte=%%r" set "texte=!t...
by Ed Dyreen
03 Dec 2018 10:41
Forum: DOS Batch Forum
Topic: Adding delays and carriage returns?
Replies: 2
Views: 135

Re: Adding delays and carriage returns?

Hello, I run a DOS utility at my work that requires a password and properties file location be entered each time you run the program. After executing the program there is a brief 2 second delay, then you are prompted for a password, then another 2 second delay, and then you are prompted to enter a ...
by Ed Dyreen
01 Dec 2018 12:26
Forum: DOS Batch Forum
Topic: Get help on file
Replies: 7
Views: 238

Re: Get help on file

Thank you very much But this is also a random script in txt file exeLines. The idea I need is that when running scrip it will run in line order in the txt file exeLines program1.exe program2.exe program3.exe After running the program1, it deletes the line from exeLines.txt No, not a random script i...
by Ed Dyreen
30 Nov 2018 10:42
Forum: DOS Batch Forum
Topic: About call Function with Arguments
Replies: 3
Views: 231

Re: About call Function with Arguments

goodywp wrote:
29 Nov 2018 04:49
OOPS again the space forgot to take care of.. My bad..
Should I delete this post, please advise...
Thanks
Yes, I would appreciate that :mrgreen:
by Ed Dyreen
30 Nov 2018 10:27
Forum: DOS Batch Forum
Topic: Get help on file
Replies: 7
Views: 238

Re: Get help on file

Hi everybody, Hi everybody I have a txt file to run various exe files 1.exe 2.exe 3.exe Which script I can run from the beginning to the end of the file and when finished running a file, then remove from the file is always txt Please help everyone @echo off &setlocal enableDelayedExpansion set "$fi...
by Ed Dyreen
26 Nov 2018 09:44
Forum: DOS Batch Forum
Topic: How to cut off some blocks off the entire file then save into separated file
Replies: 23
Views: 769

Re: How to cut off some blocks off the entire file then save into separated file

You could use findstr which does support regular expressions Echo.Hello There |findstr ".*Th?r?" But you should usually try to avoid findstr because this slows down significantly. With the faster set you can cut off the start of a variable set "$=Hello There" set "$=%$:* =%"%= strip off 'Hello ' =% ...