Search found 494 matches

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

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

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

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

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: 1
Views: 1062

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

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

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

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 ...
by npocmaka_
31 Mar 2017 07:05
Forum: DOS Batch Forum
Topic: doskey history behaviour across cmd instances
Replies: 4
Views: 2164

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.
by npocmaka_
12 Feb 2017 14:20
Forum: DOS Batch Forum
Topic: Some undocumented things with turned off command extensions
Replies: 12
Views: 3284

Re: Some undocumented things with turned off command extensions

jeb wrote:
Btw. You need to define the :eof label, as it doesn't exists without extensions.
Curious is the error message of "exit /b" in this context.
Free translation from german wrote:The label - :EOF can't be found


So exit uses goto to find the end of the file?

Should this mean that goto :eof works faster than exit /b ?
by npocmaka_
11 Feb 2017 14:25
Forum: DOS Batch Forum
Topic: Some undocumented things with turned off command extensions
Replies: 12
Views: 3284

Re: Some undocumented things with turned off command extensions

mcnd wrote:COLOR, ASSOC and FTYPE are associated to command extensions but are not documented as dependent on them.

So assoc and ftype will not work also?

EDIT
Just tried. They are not working. Thanks for the info.