Search found 512 matches
- 06 Jan 2017 16:02
- Forum: DOS Batch Forum
- Topic: self-compiled .net hybrids
- Replies: 25
- Views: 88747
Re: self-compiled .net hybrids
More notes on the msbuild technique. If you need a reference to a dll you'll need to include it in the task node in the xml (alike the simple /r:some.dll in csc compiler) you cant use the "--" directly in batch part because it will broke the xml parsing (I'll have to think how the batch pa...
- 06 Jan 2017 12:51
- Forum: DOS Batch Forum
- Topic: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
- Replies: 5
- Views: 6657
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
lmstearn wrote:Rumors of Cmd’s death have been greatly exaggerated.
There's no contradictions with the content in the first link.
Though in some other media this was misinterpreted.
- 05 Jan 2017 14:28
- Forum: DOS Batch Forum
- Topic: What is "=::" and does its value ever changes?
- Replies: 13
- Views: 13606
Re: What is "=::" and does its value ever change?
Something I can confirm on windows 8.1 and windows 7. The =:: is not there when the console is started with admin privileges (and is presented when the cmd is started with normal user). Besides subst and editing registry here's one more way to set this variable (probably it is some 'fake' drive).Pro...
- 24 Dec 2016 05:03
- Forum: DOS Batch Forum
- Topic: Any volunteers for updating Wikipedia pages
- Replies: 1
- Views: 2886
Any volunteers for updating Wikipedia pages
Merry xmass everyone. bash and linux are better documented on wikipedia (what a shame...) I suppose here's a good place to search for volunteers for updating wiki pages concerning windows, cmd.exe and batch scripting. Probably this is a good starting point - m For me this will be a lazy task with a ...
- 08 Dec 2016 13:35
- Forum: DOS Batch Forum
- Topic: pipe STDERR to find...
- Replies: 3
- Views: 3915
Re: pipe STDERR to find...
Code: Select all
tool.exe some.file 2>&1 | find "ERROR"
- 24 Nov 2016 04:29
- Forum: DOS Batch Forum
- Topic: How to start a .bat file automatically if a CD is in the device
- Replies: 4
- Views: 3920
Re: How to start a .bat file automatically if a CD is in the device
if you don't have access to the machine you are aiming you should check this - https://msdn.microsoft.com/en-us/librar ... 02(v=vs.85).aspx
if it is your own machine you can create a schedule task triggered by event .You have to check the event log for the event written when cd is put. here's shctasks help - http://ss64.com/nt/schtasks.html
if it is your own machine you can create a schedule task triggered by event .You have to check the event log for the event written when cd is put. here's shctasks help - http://ss64.com/nt/schtasks.html
- 21 Nov 2016 05:18
- Forum: DOS Batch Forum
- Topic: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
- Replies: 5
- Views: 6657
- 13 Nov 2016 06:32
- Forum: DOS Batch Forum
- Topic: How to replace asterisks in a string?
- Replies: 14
- Views: 15415
Re: How to replace asterisks in a string?
this had been discussed here: http://www.dostips.com/forum/viewtopic. ... 5&start=15
- 07 Nov 2016 14:01
- Forum: DOS Batch Forum
- Topic: Foxidrive has left us
- Replies: 42
- Views: 185698
Re: Foxidrive has left us
I'm very sad to hear that though I don't know anything about him besides his online activity
He was so polite guy , always ready to answer and help even on the stupidest possible questions (mine including).
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
He was so polite guy , always ready to answer and help even on the stupidest possible questions (mine including).
- 11 Oct 2016 11:44
- Forum: DOS Batch Forum
- Topic: Compile .bat to .exe?
- Replies: 6
- Views: 6946
Re: Compile .bat to .exe?
By going to the %tmp% folder the batch file should be in a sub folder so compiling it only protects the code from people that don't know this. Also I when I used an online compiler it added the line Shift /0 To the top does anyone know why? probably the call includes the name of the file and with s...
- 11 Oct 2016 11:21
- Forum: DOS Batch Forum
- Topic: Compile .bat to .exe?
- Replies: 6
- Views: 6946
Re: Compile .bat to .exe?
Most probably you've already hit this -> http://stackoverflow.com/questions/2817 ... arty-tools ?
and this -> http://www.f2ko.de/en/b2e.php ?
though there's no way to 'compile' bat to exe - all the tools just create a temp file somewhere and and then call it.
and this -> http://www.f2ko.de/en/b2e.php ?
though there's no way to 'compile' bat to exe - all the tools just create a temp file somewhere and and then call it.
- 07 Oct 2016 06:15
- Forum: DOS Batch Forum
- Topic: self-compiled .net hybrids
- Replies: 25
- Views: 88747
Re: self-compiled .net hybrids
using msbuild (without redundant output and without temp files ! ) : <!-- : @echo off echo -^- FROM BATCH set "CMD_ARGS=%*" :::::: Starting C# code ::::::: :: searching for msbuild location for /r "%SystemRoot%\Microsoft.NET\Framework\" %%# in ("*msbuild.exe") do set &q...
- 16 Sep 2016 16:54
- Forum: DOS Batch Forum
- Topic: Play default beep in Win 10 batch
- Replies: 11
- Views: 61015
Re: Play default beep in Win 10 batch
Code: Select all
rundll32.exe cmdext.dll,MessageBeepStub
rundll32 user32.dll,MessageBeep
but the sound sounds different from echo ^G (but I'm not sure)
- 16 Sep 2016 13:27
- Forum: DOS Batch Forum
- Topic: js/vbs/html/hta and more hybrids and chimeras in cmd/bat
- Replies: 64
- Views: 246104
Re: js/vbs/html/hta and more hybrids and chimeras in cmd/bat
turns out rundll32 also can execute jsvascript/vbscript code (though it is calling the mshtml.dll):
https://gist.github.com/subTee/62fc28bb ... 6d65921bd2
rundll32.exe javascript:"\..\mshtml.dll,RunHTMLApplication ";eval("w=new%20ActiveXObject(\"WScript.Shell\");w.Exec(\"calc\")");
https://gist.github.com/subTee/62fc28bb ... 6d65921bd2
- 16 Sep 2016 13:25
- Forum: DOS Batch Forum
- Topic: polyglots/hybrids/chimeras with (popular) windows non native languages.
- Replies: 15
- Views: 19979
Re: polyglots/hybrids/chimeras with (popular) windows non native languages.
I've tried with lua but I was unable to strip out the line that comes form lua comment.
As far as I remember lua does not have REPL/shell tool that comes with the installation ?If yes may constructing a string that will be passed to the REPL is possible..
As far as I remember lua does not have REPL/shell tool that comes with the installation ?If yes may constructing a string that will be passed to the REPL is possible..