Search found 516 matches

by npocmaka_
04 Oct 2017 08:10
Forum: DOS Batch Forum
Topic: Image processing/effects/...
Replies: 1
Views: 3085

Image processing/effects/...

Here are few tools that use Wia.image : m For reference I've used this: https://msdn.microsoft.com/en-us/library/windows/desktop/ms630819(v=vs.85).aspx Still I have no idea how to proceed with the ARGB filter (???).Soon I'll add stamp , exif editing and so on. Despite the script share a lot of code ...
by npocmaka_
02 Oct 2017 14:04
Forum: DOS Batch Forum
Topic: Running cmd from address bar is buggy.
Replies: 2
Views: 3980

Re: Running cmd from address bar is buggy.

Squashman wrote:I put your examples in a batch file and did not get the same results running it from address bar on Windows 7 Pro. It executed like a normal batch file.

I'm with win 8.1 pro . Later I can try with win10.
by npocmaka_
02 Oct 2017 13:37
Forum: DOS Batch Forum
Topic: Running cmd from address bar is buggy.
Replies: 2
Views: 3980

Running cmd from address bar is buggy.

You might know that you can run a program listed in the %path% in a certain dir by tiping its name in the address bar in a certain folder. But running the cmd in this way seems to be buggy. Examples: set /p= The system cannot find message text for message number 0x2371 in the message file for Applic...
by npocmaka_
11 Sep 2017 05:29
Forum: DOS Batch Forum
Topic: When can I use && and || syax?
Replies: 8
Views: 19383

Re: When can I use && and || syax?

Btw . Why with pipe and conditional execution operator I can create 4 cmd contexts? echo 1:%cmdcmdline% >&2 && echo 2:%cmdc^mdline% >&2 | echo 3:%cmd^cmdline% & echo 4:%cmdcmdline% output is: 1:"cmd.exe" /s /k pushd "C:\test" 2:C:\WINDOWS\system32\cmd.exe /S /...
by npocmaka_
11 Sep 2017 02:23
Forum: DOS Batch Forum
Topic: When can I use && and || syax?
Replies: 8
Views: 19383

Re: When can I use && and || syax?

you can also use call: call ErrorReturn.cmd && ECHO Success call ErrorReturn.cmd || ECHO Failure or pipe (though this is not the preferable way to do it) break| ErrorReturn.cmd && ECHO Success break| ErrorReturn.cmd || ECHO Failure The errorlevel is evaluated after the whole line is ...
by npocmaka_
11 Aug 2017 19:53
Forum: DOS Batch Forum
Topic: commands to change CmdPrompt buffer size?
Replies: 9
Views: 14624

Re: commands to change CmdPrompt buffer size?

it can be easy done with embedded .net code (you can choose among c#,jscript.net,vb,powershell) -> https://msdn.microsoft.com/en-us/librar ... e(v=vs.110).aspx
by npocmaka_
07 Aug 2017 11:53
Forum: DOS Batch Forum
Topic: jokes time
Replies: 2
Views: 3951

jokes time

Image
by npocmaka_
06 Jul 2017 05:16
Forum: DOS Batch Forum
Topic: Original batch file cmd window to other window jump
Replies: 7
Views: 8650

Re: Original batch file cmd window to other window jump

you can use AppActivate function from windows shell application object from jscript or vbscript or powershell.
by npocmaka_
05 Jul 2017 04:05
Forum: DOS Batch Forum
Topic: || Operator not working with Goto command
Replies: 4
Views: 5350

Re: || Operator not working with Goto command

check this - m (the jeb's answer) This behavior is used for heredoc in batch scripts - http://www.dostips.com/forum/viewtopic.php?t=6493 Though in this case you have something like (as I understand it the variable does not exist) goto :||goto :somewherelese but it still works.Just the cmd is out of ...
by npocmaka_
27 Jun 2017 23:50
Forum: DOS Batch Forum
Topic: Delims in For loop not working as expected
Replies: 2
Views: 3974

Re: Delims in For loop not working as expected

You need to point out the tokens too:

Code: Select all

@echo off
Setlocal EnableDelayedExpansion
For /f "tokens=1,2* delims=:" %%A IN (DataFile.Tronic) DO (
   Set File1=%%A
   Set File2=%%B
   Set File3=%%C
   )
pause
Echo %File1%
Echo %File2%
Echo %File3%
pause
by npocmaka_
07 Apr 2017 05:56
Forum: DOS Batch Forum
Topic: Open (second) cmdprompt, execute command and stay open?
Replies: 6
Views: 6796

Re: Open (second) cmdprompt, execute command and stay open?

try with :

Code: Select all

start "" C:\WINDOWS\system32\cmd.exe /k "type %drive%:\%logfile%"