windows

Powershell - Benchmark Command

Powershell comes with a cmdlet called "Measure-Command" that can execute a block of commands and measure how long it takes to run. It's analogous to the unix "time" command.

What if you want to run something a number of times and take the average?

End-user account info from Active Directory for Windows network login

Relevant links:

This is sample code. Add error handling and adjust to your requirements as necessary.

loAdUser = ADUserInfo()
 
? "cn:", loAdUser.cn
? "department:", loAdUser.department

Fix VFP file associations to open files in one VFP instance

The files associated with VFP are opened in a new instance of VFP when double-clicked or 'Open' verb is executed on them. It's configured in Windows not in VFP.

Windows limitations on file and path name

The limitations have been pulled from Windows SDK header file

Syndicate content