Search found 511 matches

by npocmaka_
09 Dec 2013 09:59
Forum: DOS Batch Forum
Topic: [solved]converting
Replies: 17
Views: 12256

Re: converting

The saving constant is passed as the third parameter to the vbscript.Here's ready to use docxToDoc converter . Should be saved as .bat '>nul 2>&1|| @copy /Y %windir%\System32\doskey.exe .\'.exe >nul '&&@echo off && cls &&goto :end_vbs Set WordApp = CreateObject("Word...
by npocmaka_
09 Dec 2013 09:13
Forum: DOS Batch Forum
Topic: [solved]converting
Replies: 17
Views: 12256

Re: converting

Here are the Word saving constants -> http://msdn.microsoft.com/en-us/library ... 39952.aspx
You can check this thread and change the save constant to 0 -> viewtopic.php?f=3&t=4755
by npocmaka_
09 Dec 2013 02:06
Forum: DOS Batch Forum
Topic: CPU
Replies: 2
Views: 3396

Re: CPU

check logman -> http://ss64.com/nt/logman.html and typeperf (could be not available in home editions of windows)-> http://ss64.com/nt/typeperf.html
by npocmaka_
06 Dec 2013 06:56
Forum: DOS Batch Forum
Topic: Excel and batch
Replies: 5
Views: 4428

Re: Excel and batch

Squashman wrote:Can't edit Excel files with Batch. You can with PowerShell though.


Also with VBscript and JScript via excel's com objects (with which you can make hybrid files)



@Rapid_Zorgz what exactly do you need?
by npocmaka_
15 Nov 2013 05:37
Forum: DOS Batch Forum
Topic: How to replace "=","*", ":" in a variable
Replies: 34
Views: 289351

Re: How to replace "=","*", ":" in a variable

A quick adaptation of my Get Last Token code. Args: "string" "char(s) to find" "char(s) to place" @echo off&setlocal enabledelayedexpansion call :l_replace "yellow banana=black cat=rainbow = noodle=beer mug" "=" "#" echo:!str! call :l_...
by npocmaka_
08 Nov 2013 07:54
Forum: DOS Batch Forum
Topic: How get data/time independent from localization
Replies: 107
Views: 131119

Re: How get data/time independent from localization

@npocmaka - As posted, your code failed. I don't see any tabs in the output, so I got the code to "work" by using DELIMS=<colon><space> However, I should think most scenarios require a numeric value for the month, (and possibly for the day of week). I suppose a simple translation table co...
by npocmaka_
08 Nov 2013 02:51
Forum: DOS Batch Forum
Topic: How get data/time independent from localization
Replies: 107
Views: 131119

Re: How get data/time independent from localization

As I like the robocopy approach - I think this is the fastest solution with it: @echo off setlocal for /f "skip=10 tokens=2,3,4,5,6,7,8 delims=: " %%D in ('robocopy /l * \ \ /ns /nc /ndl /nfl /np /njh /XF * /XD *') do ( set "dow=%%D" set "month=%%E" set "day=%%F&qu...
by npocmaka_
08 Nov 2013 02:45
Forum: DOS Batch Forum
Topic: getDate function
Replies: 12
Views: 16428

Re: getDate function

output on Win7 (you can the file itself as a directive but need to comment batch part with ;):

getTime wrote:C:\>datef.bat
year:2013
month:11
day:8
weekday:5
hour:10
minute:44
second:17
Press any key to continue . . .
by npocmaka_
08 Nov 2013 00:30
Forum: DOS Batch Forum
Topic: get checksum, version and language of file with MakeCAB
Replies: 2
Views: 3028

Re: get checksum, version and language of file with MakeCAB

carlos wrote:it show the date of creation of file?

rather `last modified`...
by npocmaka_
07 Nov 2013 04:46
Forum: DOS Batch Forum
Topic: creating self-extracting executables with makecab
Replies: 1
Views: 2485

creating self-extracting executables with makecab

I'm continuing my childish games with makecab In the documentation is mentioned the possibility to create a self-extracting archive: copy /b extract.exe+self1.cab self.exe ; self.exe is self-extracting But extract is no more available nor in Vista neither in Win7.But after few tests I succeeded to ...
by npocmaka_
06 Nov 2013 16:28
Forum: DOS Batch Forum
Topic: getDate function
Replies: 12
Views: 16428

Re: getDate function

hmmm. May be you are right with this I've succeeded to reduce time from 0.08 to 0.06 secs (few attepmpts): makecab /D RptFileName="%tf%.rpt" /D GenerateInf=off /d "InfHeader=" /d "InfDiskHeader=" /d "InfFooter=" /d "InfFileHeader=" /d "InfCabine...
by npocmaka_
06 Nov 2013 16:08
Forum: DOS Batch Forum
Topic: get checksum, version and language of file with MakeCAB
Replies: 2
Views: 3028

get checksum, version and language of file with MakeCAB

looks like there are some file properties that are accessible only with makecab (started to study it after the time functions that rely on it) form the built-in windows commands. Version and language can be checked with the UI (right click on the file -> properties ...) Check sum implementations is ...
by npocmaka_
06 Nov 2013 13:10
Forum: DOS Batch Forum
Topic: getDate function
Replies: 12
Views: 16428

Re: getDate function

you can reduce file operations even more: makecab /D RptFileName="%tf%.rpt" /D GenerateInf=off /F nul /V0 >nul You can exclude inf generation file with /D GenerateInf=off (and will not need to output in nul) and for directive file you can use nul straightforward. It's not mentioned in the ...
by npocmaka_
30 Oct 2013 15:53
Forum: DOS Batch Forum
Topic: enhance fltMc with custom filter? Is it possible?
Replies: 5
Views: 5016

Re: enhance fltMc with custom filter? Is it possible?

I hadn't used that command before. This is what I get with this command - but it requires admin permissions to use in Windows 8, which would limit its usefulness. d:\>fltmc volumes |find ":" C: \Device\HarddiskVolume1 NTFS M: \Device\00000043 NTFS D: \Device\HarddiskVolume7 NTFS Z: \Devic...