VBScript: Create Shortcut (.lnk) File
Following is a starting point for a script which will create a standard shortcut on the desktop.
Read moreFollowing is a starting point for a script which will create a standard shortcut on the desktop.
Read moreThis function will connect to Active Directory and search for a specified username, and if found, return that user’s SID. Usage: GetSIDUsingADSearch(“john.doe”) Returns: S-1-5-21-53580104-3876648466-4083845538-427214
Read moreI recently had a problem in one of my applications where, when trying to parse .lnk files for target (using the WshShell approach), I would get something like C:\Windows\Installer\{GUID} instead of the path to the executable. Turns out some .lnk files (shortcuts) are of a different breed, ala “MSI Shortcut” or “Windows Installer Advertised Application”. [...]
Read moreThese functions will encrypt and decrypt (using DES) a string using a secret key. Encrypt(“I need this string to be a secret”, “$ThIsIsAsUpErSeCrEtKeY!”) will return a string with the encrypted text. Decrypt(“5FkBed78KfrLmoU==BNu37N5kl”, “$ThIsIsAsUpErSeCrEtKeY!”) will return the original string that was encrypted with Encrypt() and the same key. If a different key is used for Decrypt() [...]
Read moreMoments ago, I stumbled upon a case study that I helped write on a project in which I was the programmer (Brian Miller was the engineer and Trey Mayfield was the project manager). This was my flagship project during my nearly four years at Ener-Tel, and the one I’m most proud of. This was due [...]
Read moreI’ve run into a problem more than once where the mail() function in PHP didn’t work. Unlike in Windows, you can’t simply set an SMTP server in the php.ini file; you must set a value for the sendmail_path. If you’re running a mail server like Sendmail of Postfix alongside your web server, this is no [...]
Read more
Follow Me!