A colleague recently popped in a support request after noticing that the Calculator app wasn’t installed on their computer. This prompted an office discussion on how else you can solve sums when sat in front of a computer, and I mentioned you could just use PowerShell.
In an ASP.Net page you can easily get the username of the currently logged in user with Request.ServerVariables(“AUTH_USER”). With the following code snippet you can also get their real name (the “Display Name”) from the Active Directory.
I’ve recently had the need to write an ASP page which reads a SQL database and outputs into Microsoft Excel- a user clicks on a link to this ASP page and Excel opens up with a new spreadsheet of the data. This is how I did it
A couple of useful network commands in Visual BASIC .NET (2005). These are the equivalents of doing ping and nslookup from the command prompt. The variable sIPAddress in these examples is a string containing the IP to test, i.e. "127.0.0.1"
I recently had a need to install Visual Basic 6.0 Enterprise Edition on a number of machines using a batch file script and a silent -unattended - installation process. Given the age of the application I thought this would be quite straightforward and well documented, but there were a number of hurdles to clear on the …
Some work I’ve been involved with (see here and here) with UNIX Timestamps threw up another challenge today- getting the timestamp for midnight on January 1st of the current year. This is what I came up with: