The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘Windows Server 2000’ Category

psubst – Persistent SUBST command – Google Project Hosting

Posted by jpluimers on 2013/04/19

PSUBST:

Associates a path with a drive letter and extends the standard SUBST command allowing to create persistent substituted drives between startups.

It is the “maintained” version of scripts like these:

–jeroen

via: psubst – Persistent SUBST command – Google Project Hosting.

Posted in Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | 2 Comments »

WaveSuffer: tool for sound visualisation and manimpulation

Posted by jpluimers on 2013/04/05

Interesting answer on SO, not only for developers:

You can check out the wavesurfer program:

WaveSurfer is an Open Source tool for sound visualization and manipulation. It has been designed to suit both novice and advanced users. WaveSurfer has a simple and logical user interface that provides functionality in an intuitive way and which can be adapted to different tasks. It can be used as a stand-alone tool for a wide range of tasks in speech research and education. Typical applications are speech/sound analysis and sound annotation/transcription. WaveSurfer can also serve as a platform for more advanced/specialized applications. This is accomplished either through extending the WaveSurfer application with new custom plug-ins or by embedding WaveSurfer visualization components in other applications.

It can perform many different types of analysis, I have only used it for practicing Chinese tone pronunciation.

Thanks hlovdal!

–jeroen

via delphi – component or code for wave analyzer – Stack Overflow.

Posted in Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Why don’t the shortcuts I put in the CSIDL_COMMON_FAVORITES folder show up in the Favorites menu? – The Old New Thing – Site Home – MSDN Blogs

Posted by jpluimers on 2013/03/25

Why Internet Explorer does not use these two for showing shortcuts:

  • CSIDL_COMMON_FAVORITES
  • %ALL­USERS­PROFILE%\Microsoft\Internet Explorer\Quick Launch

–jeroen

via: Why don’t the shortcuts I put in the CSIDL_COMMON_FAVORITES folder show up in the Favorites menu? – The Old New Thing – Site Home – MSDN Blogs.

Posted in Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

TSListUsers: great little console tool to list Remote Desktop / Terminal Services Users

Posted by jpluimers on 2013/03/18

Thanks to Joe KlemencicTSListUsers is a great little console tool that shows you the currently logged on users and which session they use:

List Terminal Services Users

TSListUsers is a command line utility to list both the currently connected and disconnected users, hostname, IP address and RDP session number on either the local or a remote Windows Terminal Server/RDP Server

To list the users, you need to have the following abilities:

  • NetBios access to the server
  • Permissions allowing you to Query RDP session information (if you can log into the TS, you should have this by default)
  • Terminal Services/RDP should be running on the target host

Usage:
TSListUsers.exe /? to get the Help text
TSListUsers.exe to query a target Terminal Server
TSListUsers.exe with no paramters to query the local host

You can download TSListUsers from here.

Example output of remote session:

C:\Windows>TSListUsers.exe
Active Connections:
Username, HostName(IP), SessID, RDP-Port
----------------------------------------
jeroenp, W701UJPL (192.168.71.34), 2, RDP-Tcp#92

Disconnected Connections:
Username, HostName, SessID
--------------------------

Example output of local session:

C:\Windows>TSListUsers.exe
Active Connections:
Username, HostName(IP), SessID, RDP-Port
----------------------------------------
jeroenp,  1, Console

Disconnected Connections:
Username, HostName, SessID
--------------------------

–jeroen

via List Terminal Services Users.

Posted in Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

ntfs – How do you find what process is holding a file open in Windows? – Server Fault

Posted by jpluimers on 2013/03/15

First a warning: when you have found the process holding open a file, and you want to forcibly close the handle, read this post why you should not: Windows Confidential: Forcing Handles Closed.

In fact:

if you forcibly need to close a handle to salvage something, you should reboot shortly afterwards.

Back to the question at hand:

How do you find what process is holding a file open in Windows?

One thing that annoys me no end about Windows is the old “sharing violation” error. Often you can’t identify what’s holding it open. Usually it’s just an editor or explorer just pointing to a relevant directory but sometimes I’ve had to resort to rebooting my machine.

Any suggestions on how to find the culprit?

All of the below solutions require you to run with Administrative privileges.

On current Windows versions, if you run them without UAC elevation, they will miss a lot of processes. And still: under some secured environments you won’t see all processes anyway.

My preferred answer is not on the list:

Quit the application that holds the handle

All the tools that show you the handles will indicate which process holds the handle.

Often, you can just quit that process, do your job on the affected file, then relaunch that process.

When the process is Explorer, there is a neat little trick that works for Windows Vista and up:

For explorer, btw, hold ctrl-shift and right-click a blank area of the start menu, and you’ll get “Exit Explorer” – ps, not quite Jeff’s answer.. – Mark Sowul

Another answer I like is to use Handle, as it is both a command-line tool, and allows for wildcard searching: Read the rest of this entry »

Posted in Conference Topics, Conferences, Event, Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

A couple DLL Locations that Windows uses to display Icons from

Posted by jpluimers on 2013/03/11

This one most people know of:

  • %SystemRoot%\system32\SHELL32.dll

But these files also provide icons:

  • %SystemRoot%\system32\filemgmt.dll
  • %SystemRoot%\system32\dsadmin.dll
  • %SystemRoot%\system32\els.dll

Various versions of Windows share the icon ID in those files, but have different visual content.

A tool like IconsExtract – Extract icon/cursor stored in EXE, DLL, OCX, CPL files can be used to view or extract those icons.

IconExtract works much better at finding the Index inside SHELL32.dll that is described at How Can I Change the Icon for an Existing Shortcut? – Hey, Scripting Guy! Blog – Site Home – TechNet Blogs.

Copyright issues might apply…

–jeroen

Posted in Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Most common error codes during Windows/Microsoft Update

Posted by jpluimers on 2013/02/25

Finally I found a good list of error codes that you might encounter when doing Windows/Microsoft Updates.

The page is for Windows XP SP3, but the error codes occur in many other update situations as well.

Error code that appears in the WindowsUpdate.log file Error Code description (as it may appear in the Svcpack.log file) Knowledge Base article that describes potential resolutions
0x8007F0F4 STATUS_PREREQUISITE_FAILED 949388
0x80246007 SUS_E_DM_NOTDOWNLOADED 949386
0x8007F003 STATUS_NOT_ENOUGH_SPACE 949385
0x80070005 ERROR_ACCESS_DENIED 949377
0x800706BE RPC_S_CALL_FAILED 950718
0x8007F02B STATUS_NOT_ENOUGH_WITH_UNINST 949375
0x87FF0004 Error_Too_Many_Open_Files 950718
0x8007054F Error_Internal_Error 949384
0x8007001F ERROR_GEN_FAILURE 950718
0x8007F070 STATUS_SETUP_ERROR 950718
0x8007F205 STR_UPDATE_ALREADY_RUNNING 949381
0x8007F004 STATUS_INSUFFICIENT_PRIVS 951244
0x80070001 ERROR_INVALID_FUNCTION 950718
0x80070002 ERROR_FILE_NOT_FOUND 950718
0x8007F0CC STATUS_KERNEL_NONSTD 327101
0x87FF054F n/a 950718
0x87FF36B7 n/a 950718

Oh and this didn’t solve my problem:

  • REGSVR32 WUAPI.DLL
  • REGSVR32 WUAUENG1.DLL
  • REGSVR32 ATL.DLL
  • REGSVR32 WUPS2.DLL
  • REGSVR32 WUCLTUI.DLL
  • REGSVR32 WUPS.DLL
  • REGSVR32 WUWEB.DLL
  • REGSVR32 WUAUENG.DLL

–jeroen

via:

Posted in Power User, Windows, Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

How to Set the /3GB Startup Switch in Windows

Posted by jpluimers on 2013/02/08

Hardly needed any more, but since we are migrating some systems away from Windows Server 2003 x86 but before that need to resolve some capacity issues (and need to get PAE working): How to Set the /3GB Startup Switch in Windows.

–jeroen

Posted in Power User, Windows, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Vista, Windows XP | Leave a Comment »

START: Start a program, **even if it is not on the PATH** ideal to start various versions of apps from DOS

Posted by jpluimers on 2013/01/29

A while ago, I had to adapt a DOS app that used one specific version of Excel to do some batch processing so it would support multiple versions of Excel on multiple versions of Windows.

One of the big drawbacks of DOS applications is that the command lines you can use are even shorter than Windows applications, which depending you how you call an application are:

This is how the DOS app written in Clipper (those were the days, it was even linked with Blinker :) started Excel:

c:\progra~1\micros~2\office11\excel.exe parameters
01234567890123456789012345678901234567890
          1         2         3         4

The above depends on 8.3 short file names that in turn depend on the order in which similar named files and directories have been created.

The trick around this, and around different locations/versions of an application, is to use START to find the right version of Excel.

The reason it works is because in addition to PATH, it checks the App Paths portions in the registry in this order to find an executable: Read the rest of this entry »

Posted in Batch-Files, Development, Encoding, Power User, Scripting, Software Development, Unicode, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

AkelPad Editor: tiny, and functional. Too bad it steals the Alt-letter keyboard shortcuts

Posted by jpluimers on 2013/01/25

Just found out about the AkelPad Editor.

It is tiny, has a lot of functionality.

Too bad that Alt+V does not go to the View menu, but is bound to a kind-of-past functionality.

Similar for other Alt+letter combinations in their keyboard shortcuts.

They should have used Ctrl+Alt+letter combinations for it.

So I continue my search for a good, tiny, syntax highlighting and multi-encoding capable NotePad alternative.

–jeroen

Posted in Keyboards and Keyboard Shortcuts, Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »