Search found 12 matches

by zpimp
03 Jan 2014 16:59
Forum: DOS Batch Forum
Topic: Combine files and create a single file
Replies: 8
Views: 8616

Re: Combine files and create a single file

to concatenate all text files in a folder in file.txt, and delete after
copy /b *.txt file.txt
del /f /q *.txt
by zpimp
31 Dec 2013 12:37
Forum: DOS Batch Forum
Topic: Advanced Batch features via auxiliary .exe programs
Replies: 76
Views: 240423

Re: Advanced Batch features via auxiliary .exe programs

most useful programs i used for batch are the gnuwin32 utilities grep/sed/awk
by zpimp
31 Dec 2013 12:32
Forum: DOS Batch Forum
Topic: Gain MAC address by batch file
Replies: 6
Views: 16053

Re: Gain MAC address by batch file

there was a wmic command wich would give you the real mac address, and only one, but i dont have it now
similar commands are available for system serialnumber and hdd serial number
by zpimp
12 Dec 2013 23:27
Forum: DOS Batch Forum
Topic: Create html From A Directory Of Images
Replies: 7
Views: 9355

Re: Create html From A Directory Of Images

done something like this, resizing with irfanview from commandline i think is normal to freeze @ 30,000 images per page. it probably runs out of memory or something include a javascript function with document write for each set, taking the name-of-set as argument i once made a single html/js file to...
by zpimp
04 Dec 2013 10:01
Forum: DOS Batch Forum
Topic: network dump to csv
Replies: 3
Views: 4245

Re: network dump to csv

im doing something similar but first ping ip to see if its on, and parsing commands output using perl using wmic i get mac,serial,hdd i used to love batch but its limits are easily reached perl is just awesome reading command output to a variable is as simple as $var=`command`; too bad perl fork is ...
by zpimp
07 Oct 2013 23:21
Forum: DOS Batch Forum
Topic: Copy and append files into a single file
Replies: 3
Views: 4327

Re: Copy and append files into a single file

if they have the same extension (ex: txt)
copy /b *.txt all.out
by zpimp
02 Jul 2013 15:24
Forum: DOS Batch Forum
Topic: wait for all before continue
Replies: 8
Views: 9032

Re: wait for all before continue

i would normally use tasklist, but i have encountered problems with it @Aacini i did something similar but your code is better i found a program that can do what i want (written in pure c, no dependencies, 9kb, source code included) not made by me http://rghost.net/47175763 so now i only have to do ...
by zpimp
01 Jul 2013 09:03
Forum: DOS Batch Forum
Topic: wait for all before continue
Replies: 8
Views: 9032

wait for all before continue

i have a script wich downloads some pages with CURL for /l %%i in (1,1,12) do ( start /wait /min curl !_url%%i! -m 10 -o %%i.htm ) is there a way to download at the same time, and also wait for all before continuing the script? if i use start /wait they run one after another if i use start it doesen...
by zpimp
26 Jun 2013 22:01
Forum: DOS Batch Forum
Topic: regex search and replace for batch - Easily edit files!
Replies: 48
Views: 164615

Re: regex search and replace for batch - Easily edit files!

@dave im sure jscript can do it, was wondering about this specific app, if i you can add that option would do it myself if i knew how offtopic: i am in the position to use WSH, using gnuwin32 wherever i can, but sometimes its not possible more specific im using JSCRIPT, i dont like the vbs syntax, b...
by zpimp
26 Jun 2013 15:29
Forum: DOS Batch Forum
Topic: regex search and replace for batch - Easily edit files!
Replies: 48
Views: 164615

Re: regex search and replace for batch - Easily edit files!

i was looking for something like this, thank you
is it possible to use it for regex search without replace (for grep-ing) ?
by zpimp
14 Jun 2013 13:39
Forum: DOS Batch Forum
Topic: Take webpage input to generate and run a batch file...
Replies: 1
Views: 4142

Re: Take webpage input to generate and run a batch file...

you could make a menu with choice/errorlevel and subroutines to run what they select but its a crapload of code to write enter the number of the printer you want to install 1) win xp - HR - hp 3450 ... 44) win 7 - sales - canon mp3 would be easier to make it in jscript assuming your using internet e...
by zpimp
14 Jun 2013 13:19
Forum: DOS Batch Forum
Topic: [ SOLVED ] Delete Script and Script's root folder?
Replies: 7
Views: 8060

Re: Delete Script and Script's root folder?

taskkill explorer will not bluescreen pskill explorer set _pa=%~dp0 cd /d c:\ rd/s/q %_pa% start explorer.exe replace first line with taskkill i dont know why would you have the folder opened, but anyway it works it even works if i have the folder opened in totalcommander i used something like this ...