Search found 512 matches

by npocmaka_
11 Sep 2017 02:23
Forum: DOS Batch Forum
Topic: When can I use && and || syax?
Replies: 8
Views: 15940

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

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

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

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

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

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

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

try with :

Code: Select all

start "" C:\WINDOWS\system32\cmd.exe /k "type %drive%:\%logfile%"
by npocmaka_
05 Apr 2017 02:38
Forum: DOS Batch Forum
Topic: Output messages I can't invoke.
Replies: 2
Views: 5459

Output messages I can't invoke.

Some messages from cmd mui file that I don't know how to reproduce (and I even't don't know if it's possible): An incorrect parameter was entered for the command. The system cannot accept the path or file name requested. The system is out of environment space. (probably if a lot environment variable...
by npocmaka_
05 Apr 2017 01:19
Forum: DOS Batch Forum
Topic: diamond.exe is still required 20 years after, curiosity
Replies: 2
Views: 4196

Re: diamond.exe is still required 20 years after, curiosity

I can open the image.
Here's the popup with the error(windows 7):

Image


This is something surely must be send to microsoft as a bug. At least in win10 there's a feedback application.
by npocmaka_
04 Apr 2017 08:33
Forum: DOS Batch Forum
Topic: Extract information from a website to txt
Replies: 9
Views: 8306

Re: Extract information from a website to txt

You can try with winhttpjs.bat : call winhttpjs.bat "https://www.anisearch.de/anime/9357,tokyo-ghoul" -saveto tokyo-ghoul.txt Though it will not render the javascript. Also the downloaded file probably will be not well-formatted xml and you wont be able to process it with an xml tool. Prob...
by npocmaka_
31 Mar 2017 07:12
Forum: DOS Batch Forum
Topic: doskey history behaviour across cmd instances
Replies: 4
Views: 5049

Re: doskey history behaviour across cmd instances

I can't reproduce the result of "---- Point4" . Could be something related with the windows version (at the moment I'm using windows 10).It is just showing the history of the main instance. Ok. Actually I can It depends if I use exit or exit /b in the sub session . Edit In matter of fact ...