Search found 1761 matches

by penpen
24 Dec 2019 19:07
Forum: DOS Batch Forum
Topic: Wacom tablet pressure input for cmd
Replies: 4
Views: 801

Re: Wacom tablet pressure input for cmd

The Wacom Forum might be able to answer you that for all Wacom tablets:
http://forum.wacom.eu/

penpen
by penpen
13 Dec 2019 05:38
Forum: DOS Batch Forum
Topic: Using the rename command
Replies: 9
Views: 1098

Re: Using the rename command

The following code might help you (although i suspect that you didn't describe the whole issue):

Code: Select all

rename "Encoder_TestHarnessLog_19_12_13-083023.xml" "Test1_19_12_13-083023.xml"
penpen
by penpen
10 Dec 2019 13:33
Forum: DOS Batch Forum
Topic: Split string to characters
Replies: 31
Views: 11257

Re: Split string to characters

See dbenham's "Percent Expansion Rules" for more: https://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912 Because variable name1 doesn't exist the part [%name1:] (without brackets) is removed, Variable [" EQU "] (without brackets) al...
by penpen
09 Dec 2019 07:09
Forum: DOS Batch Forum
Topic: If Else bracket error Help
Replies: 2
Views: 740

Re: If Else bracket error Help

I suspect you want to do that: if exist "D:\Test1" ( if exist "D:\Test2" ( echo OK ) else ( echo Error ) ) else ( echo Error ) Although most probably both of your above code does not work as you intended, it should work fine (from technical viewpoint only). Your first sample code should: - do nothin...
by penpen
04 Dec 2019 19:28
Forum: DOS Batch Forum
Topic: Show drive letter of DVD drive
Replies: 2
Views: 722

Re: Show drive letter of DVD drive

I assume the for/f loop you are using already determines your dvd drive encapsulating it in the %%i for-variable. So just use store that value to an environment variable and use that befor your "endlocal" (which restores the variables to a prior state; untested): @echo off setlocal enableExtensions ...
by penpen
21 Nov 2019 07:31
Forum: DOS Batch Forum
Topic: NEWBIE HERE :)
Replies: 3
Views: 955

Re: NEWBIE HERE :)

1. Whenever I see symbols like "ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ" in a batch script sometimes they turn into lines or shapes but then again sometimes they just look like random charecters, depending on the game I open, including if I copy and past them into mine I was wonder...
by penpen
17 Nov 2019 03:58
Forum: DOS Batch Forum
Topic: I need help
Replies: 15
Views: 1490

Re: I need help

David was not clear in his explanation so there are two options in 2 cases Could you give some more context information and also link to the post(s) you are referring to? I want to convert some hex codes to the codes used by MS-DOS Intuitively i would use environment string manipulation for that (b...
by penpen
31 Oct 2019 02:49
Forum: DOS Batch Forum
Topic: If statement compare two files.
Replies: 4
Views: 2593

Re: If statement compare two files.

You could use a for/f loop to store the resulting output into a variable if that is what you want (untested): @echo off setlocal enableExtensions disableDelayedExpansion for /f "skip=1 tokens=* delims=" %a in ('comp sample1.txt sample2.txt /m') do ( set "line=%~a" ) Another option were to use the er...
by penpen
24 Oct 2019 14:49
Forum: DOS Batch Forum
Topic: AYUDA! CON GRAFICOS DE CONSOLA | HELP WITH CONSOLE GRAPHICS
Replies: 2
Views: 5247

Re: AYUDA! CON GRAFICOS DE CONSOLA | HELP WITH CONSOLE GRAPHICS

I'm not sure how that is connected to any batch, you could use code tags ( [ code] [ /code]), also you should provide enough code for a standalone working sample that produces the issue you want to solve. What exactly do you mean by "flashes the (...) screen" ? (Do you mean that the background turns...
by penpen
15 Oct 2019 19:08
Forum: DOS Batch Forum
Topic: Batch program to add text to url
Replies: 4
Views: 6020

Re: Batch program to add text to url

The tool clip.exe could be used for that: @echo off setlocal enableExtensions enableDelayedExpansion :: uri encoded input of form: http://name.com:8080/<username>/<password>/30356 set "input=" set /p "input=" :: variables of form :: "%%~a" = "http:" :: "%%~b" = "name.com:8080" :: "%%~c" = "<username...
by penpen
15 Oct 2019 04:25
Forum: DOS Batch Forum
Topic: Batch program to add text to url
Replies: 4
Views: 6020

Re: Batch program to add text to url

This might help you: @echo off setlocal enableExtensions enableDelayedExpansion :: uri encoded input of form: http://name.com:8080/<username>/<password>/30356 set "input=" set /p "input=" :: variables of form :: "%%~a" = "http:" :: "%%~b" = "name.com:8080" :: "%%~c" = "<username>" :: "%%~d" = "<pass...
by penpen
02 Oct 2019 03:09
Forum: DOS Batch Forum
Topic: Enabling the internal debug outputs of cmd.exe
Replies: 17
Views: 16099

Re: Enabling the internal debug outputs of cmd.exe

I was a bit inaccurate, i meant: That feature (probably) stopped working with installation of version 1903, build 18362.387 (on all pc's). (So i couldn't get it back to work by replacing the hardware.) Using win version 1903, build 18362.387 the nested FOR /F loops just print"jeb" to the screen and ...
by penpen
01 Oct 2019 13:20
Forum: DOS Batch Forum
Topic: Enabling the internal debug outputs of cmd.exe
Replies: 17
Views: 16099

Re: Enabling the internal debug outputs of cmd.exe

So that "undocumented feature" indeed stopped working :cry:
Sad - i liked that a lot.


penpen
by penpen
30 Sep 2019 03:19
Forum: DOS Batch Forum
Topic: Enabling the internal debug outputs of cmd.exe
Replies: 17
Views: 16099

Re: Enabling the internal debug outputs of cmd.exe

Yesterday my Windows 10 home updated to win version 1903 (build 18362.387) and i noticed that enabling debug stopped working. My pc was kind of problematic one because it refused to install that a long time claiming the "Intel Rapid Store Technology (Intel RST)" must be updated first, which was odd,...
by penpen
24 Sep 2019 01:52
Forum: DOS Batch Forum
Topic: How to get .ext ftype into variable
Replies: 2
Views: 4412

Re: How to get .ext ftype into variable

You may use a "for/f"-loop (untested):

Code: Select all

@echo off
setlocal enableExtensions disableDelayedExpansion
for /f "tokens=* delims==" %%a in ('assoc .png') do set "%%~a"

echo(.png=%.png%
goto :eof
penpen