Search found 12 matches

by Voodooman
15 Aug 2012 20:04
Forum: DOS Batch Forum
Topic: [tip] ulimited args & subargs with spaces & any order in bat
Replies: 1
Views: 2944

[tip] ulimited args & subargs with spaces & any order in bat

Was experimenting with arguments for a long time, reed things about shift, but everything was useless for my task. All methods i reed about have these limitations (not all of them at once, mind you): *Order of arguments fixed, put them in random order and arguments ruined *no subarguments (not sure ...
by Voodooman
22 Jul 2012 04:16
Forum: DOS Batch Forum
Topic: Porting Windows Batch (BAT) to Mac OS X shell scripts (SH) ?
Replies: 4
Views: 6677

Re: Porting Windows Batch (BAT) to Mac OS X shell scripts (S

Im not sure that apple sctipt is what i need.
Apple script is more like Auto Hot key for windows, and less like dos command prompt, while shell scripts are much closer to that and much more powerful.
by Voodooman
21 Jul 2012 03:30
Forum: DOS Batch Forum
Topic: Need some help
Replies: 9
Views: 8648

Re: Need some help

so you just use ! instead of alphanumeric values?
by Voodooman
21 Jul 2012 03:25
Forum: DOS Batch Forum
Topic: Porting Windows Batch (BAT) to Mac OS X shell scripts (SH) ?
Replies: 4
Views: 6677

Porting Windows Batch (BAT) to Mac OS X shell scripts (SH) ?

Help needed! I used to rely on bat scripts wrapped into exe launcher heavily and use them to avoid messing with visual studio and coding when i need to make some simple programs. So in this case i only notepad++, exe wrapper and maybe few extra command line tools if such function not supported by cm...
by Voodooman
26 Sep 2011 12:18
Forum: DOS Batch Forum
Topic: [How to] dec to hex and hex to dec conversion bat
Replies: 6
Views: 51768

Re: [How to] dec to hex and hex to dec conversion bat

i know about %=exitCodeASCII% but its not the point of my interest, as i need opposite effect Actually your script is exactly what i was thinking about (and just mentioned in some thread nearby without awareness that someone already did this script), but again it seems 2 slow and heavy - 255 for cyc...
by Voodooman
26 Sep 2011 09:36
Forum: DOS Batch Forum
Topic: Create .bks file using batch script
Replies: 2
Views: 4101

Re: Create .bks file using batch script

this would be quite hard, you can try to use this command to convert dec string into hex or ASCII symbol call cdm /b exit /b %dec% and this line to catch hex value or ASCII symbol set hex=%=exitcode% & set ascii=%=exitcodeascii% in this case your !ascii! would be a binary byte which you can outp...
by Voodooman
26 Sep 2011 09:01
Forum: DOS Batch Forum
Topic: [solved] Hide keyboard input in a batch
Replies: 13
Views: 85261

Re: [solved] Hide keyboard input in a batch

Sure it would not, 64bit version of Windows have NTVDM emulator removed, and this means no COM files support, as well as any 16bit windows executables. However this could be bypassed using dosbox to launch 16 bit application, but it would be tricky, since dosbox isnt native system application like n...
by Voodooman
26 Sep 2011 08:53
Forum: DOS Batch Forum
Topic: Need some help
Replies: 9
Views: 8648

Re: Need some help

modified it a little to remove "file not found" from llist if no file with extenstion exist @echo off SetLocal EnableDelayedExpansion set "$Field=mpa asf avi flv mov mp4 mpg swf vob wmv" for %%! in ( !$Field! ) do ( for /f "tokens=*" %%! in ( 'if exist ^"*.%%~!^&qu...
by Voodooman
26 Sep 2011 08:28
Forum: DOS Batch Forum
Topic: I challange you solving this !
Replies: 4
Views: 5030

Re: I challange you solving this !

Someone played Portal to much "thank you for helping us help you help us all". But is think that "cake is lie". Im not quite sure what you mean by macro, but its pretty much easy to set any line of command or anything as variable and then read them from memory! However im not sur...
by Voodooman
26 Sep 2011 06:58
Forum: DOS Batch Forum
Topic: [How to] dec to hex and hex to dec conversion bat
Replies: 6
Views: 51768

Re: [How to] dec to hex and hex to dec conversion bat

Yeah that exactly that big function i refused to use, despite big size of code, also it have mistake. This is fixed, cleaned version :tohex cls set /a dec=%~1 set "hex=" set "map=0123456789ABCDEF" for /L %%N in (1,1,8) do ( set /a "d=dec&15,dec>>=4" for /f %%D in (&...
by Voodooman
25 Sep 2011 19:06
Forum: DOS Batch Forum
Topic: Need some help
Replies: 9
Views: 8648

Re: Need some help

create text file with extensions, one per line like this ext.txt mp3 mpa asf avi flv mov mp4 mpg swf vob wmv setlocal enabledelayedexpansion for /f "tokens=* Delims=" %%a in ( ext.txt ) do ( set ext=%%a dir *.!ext! /b /o:gn >>list.txt ) This will list only filenames with extensions and sto...
by Voodooman
25 Sep 2011 18:34
Forum: DOS Batch Forum
Topic: [How to] dec to hex and hex to dec conversion bat
Replies: 6
Views: 51768

[How to] dec to hex and hex to dec conversion bat

I spent entire day searching the way how to convert dec value to hex and back, unfortunately there is no documented way to do it, but there are 2 tricks, which i want to share to help other people avoid googling all day long without success (well success was partial, there was a big messy code which...