Warning: Cannot modify header information - headers already sent by (output started at /dn-anderwald.info/wp-content/plugins/wpheadsp/wpheadsp.php:1) in /dn-anderwald.info/wp-includes/feed-rss2-comments.php on line 8
Comments for Jakub Anderwald http://anderwald.info Yet Another Tech Blog Tue, 05 Dec 2017 08:54:47 +0000 hourly 1 https://wordpress.org/?v=4.9.4 Comment on W3SVC hung in stopping state by Dee http://anderwald.info/iis/w3svc-hung-in-stopping-state/comment-page-1/#comment-319082 Tue, 05 Dec 2017 08:54:47 +0000 http://anderwald.info/?p=355#comment-319082 Thank you so much

]]>
Comment on Client certificate mapping in IIS 7 and impersonation by Jakub "Kocureq" Anderwald http://anderwald.info/iis/client-certificate-mapping-in-iis-7-7-5-and-impersonation/comment-page-1/#comment-315731 Wed, 03 May 2017 21:44:21 +0000 http://anderwald.info/?p=312#comment-315731 I guess you need to start Notepad with full admin rights (“run as administrator”) to be able to write system files. Please check that and let me know if it helped.

]]>
Comment on Client certificate mapping in IIS 7 and impersonation by Wei-Chung http://anderwald.info/iis/client-certificate-mapping-in-iis-7-7-5-and-impersonation/comment-page-1/#comment-314351 Fri, 24 Feb 2017 17:52:26 +0000 http://anderwald.info/?p=312#comment-314351 I got access denied when update the C:\Windows\System32\inetsrv\config\schema\IIS_schema.xml. Do I have to do anything to update xml file?

]]>
Comment on Codelobster PHP editor by shlomo http://anderwald.info/programming/codelobster-php-editor/comment-page-1/#comment-313392 Tue, 10 Jan 2017 16:59:42 +0000 http://anderwald.info/?p=385#comment-313392 I’m interested :)

]]>
Comment on W3SVC hung in stopping state by Achitopel http://anderwald.info/iis/w3svc-hung-in-stopping-state/comment-page-1/#comment-311700 Fri, 04 Nov 2016 17:50:03 +0000 http://anderwald.info/?p=355#comment-311700 Thanks Man!

]]>
Comment on Windows batch: delete all empty files in a specified folder by Joe Huang http://anderwald.info/scripting/windows-batch-delete-all-empty-files-in-a-specified-folder/comment-page-1/#comment-311273 Mon, 24 Oct 2016 19:27:42 +0000 http://anderwald.info/?p=50#comment-311273 I have a batch procedure that I want to exit if the output file named NEWTH.TMP is empty.
I’ve tried the following but it doesn’t work:
if %NEWTH.TMP% equ 0 goto :End

Can anyone tell me what is wrong?

]]>
Comment on Hardware upgrade policy by Xenie http://anderwald.info/it/hardware-upgrade-policy/comment-page-1/#comment-304115 Sat, 19 Dec 2015 20:25:12 +0000 http://anderwald.info/it/hardware-upgrade-policy/#comment-304115 Yes, I agree. Don’t upgrade to Windows 8 if you aerlady have a halfway decent computer with Windows 7. If you have anything running XP, throw the entire machine out a window a very high window, preferably eight stories up. Anyway, no, I just insist on buying multiple copies for computers yet to be unearthed.

]]>
Comment on I just love IPv6 by Abd http://anderwald.info/it/i-just-love-ipv6/comment-page-1/#comment-299309 Sun, 25 Oct 2015 08:09:06 +0000 http://anderwald.info/?p=309#comment-299309 Make sure that files were copied into wwwRoot of the web foledr. Sometimes you have one wwwRoot installed by default and the real root of the web server IIS is somewhere else. Then you can open IIS manager and assign code execution permissions to comersus foledr.[]

]]>
Comment on Windows batch: delete all empty files in a specified folder by Axel Mertes http://anderwald.info/scripting/windows-batch-delete-all-empty-files-in-a-specified-folder/comment-page-1/#comment-241769 Thu, 23 Apr 2015 16:45:58 +0000 http://anderwald.info/?p=50#comment-241769 @Axel Mertes

Better use this version, as it handles files/folders with spaces in names correctly:

@ECHO OFF
SET topLevel=%CD%
FOR /D /R %%D IN (*) DO (
CD %%D
CALL :innerLoop
)
CD %topLevel%
FOR /F “usebackq delims=” %%D IN (`”DIR /AD/B/S | SORT /R”`) DO RD “%%D”
GOTO :break

:innerLoop
FOR /F “delims=” %%F IN (‘DIR/B/A-D/OS’) DO IF %%~zF EQU 0 (DEL “%%F”) ELSE (GOTO :break)

:break

]]>
Comment on Windows batch: delete all empty files in a specified folder by Axel Mertes http://anderwald.info/scripting/windows-batch-delete-all-empty-files-in-a-specified-folder/comment-page-1/#comment-241760 Thu, 23 Apr 2015 16:07:31 +0000 http://anderwald.info/?p=50#comment-241760 Hi All!

I’ve revamped the script once more, now heavily optimized for speedy processing:

@ECHO OFF
SET topLevel=%CD%
FOR /D /R %%D IN (*) DO (
CD %%D
CALL :innerLoop
)
CD %topLevel%
FOR /F “usebackq delims=” %%D IN (`”DIR /AD/B/S | SORT /R”`) DO RD “%%D”
GOTO :break

:innerLoop
FOR /F “delims=” %%F IN (‘DIR/B/A-D/OS’) DO IF %%~zF EQU 0 (DEL %%F) ELSE (GOTO :break)

:break

The problem with the old one was that the two nested FOR loops touched every single file. As empty files are rare, there is absolutely no need to touch every file and its a big waste of time. I’ve tried to run it on a 25 TByte volume with ~5 million files….

So I modified the inner loop to sort files by size in a DIR command using the /OS (Ordered Size) option. The /A-D does not list directories, so only true files remain (directories are listed as size 0 too, this is why I added this). For every file the size is checked. Once a file larger than 0 bytes is found, the loop is exited using the GOTO :break. As the files are sorted by size, smallest first, its safe to proceed like this.

As DOS FOR command has no elegant way to leave the loop I used this strange construct to call the inner loop using goto.

It seems to run about a few thousand times faster on my large volumes than the previous one ;-)

Regards
Axel

]]>