it is a context menu editor, an autoplay editor, and default programs association editor; essentially, the settings in the "Default Programs" Control Panel page. It's a replacement for the "File Types" dialog in Windows XP, and brings some key features of TweakUI to Windows Vista/7.

Really cool and well done tool, a must have.

Source : defaultprogramseditor.com

Read More

You can now follow me and my blog on Twitter :

Follow me on Twitter

Thanks to twitterfeed.com

Read More

I was looking for a function to get the script directory in a PowerShell script and I didn’t found exaclty found what I was looking for.

I found some scripts on the net that works on PowerShell 1.0 or  2.0 and with Powershell host or PrimalScript 2009 Host (yes I’m using PrimalScript everyday).

So I tooked some code form others and added some of my stuff and here what I came up with :

function get-scriptdirectory {

# .SYNOPSIS 
# 	Return the current script directory path, compatible with PrimalScript 2009
# 	Equivalent to VBscript fso.GetParentFolderName(WScript.ScriptFullName)
# 	Requires PowerShell 2.0
#    
# .DESCRIPTION
#	Author   : Jean-Pierre.Paradis@fsa.ulaval.ca
#	Date     : March 31, 2010
#	Version  : 1.01
#
# .LINK 
# 	http://blog.sapien.com/index.php/2009/09/02/powershell-hosting-and-myinvocation/

    if (Test-Path variable:\hostinvocation) 
    	{$FullPath=$hostinvocation.MyCommand.Path}
    Else {
   		$FullPath=(get-variable myinvocation -scope script).value.Mycommand.Definition }  	
	if (Test-Path $FullPath) {
    	return (Split-Path $FullPath) 
		}
    Else {
		$FullPath=(Get-Location).path
		Write-Warning ("Get-ScriptDirectory: Powershell Host <" + $Host.name + "> may not be compatible with this function, the current directory <" + $FullPath + "> will be used.")
		return $FullPath
		}
}

My function will work on PowerShell command line, PowerShell ISE or PrimalScript 2009. You will, however need PowerShell 2.0.

It is also compatible with a ‘Set-StrictMode -Version 2.0’ (you the thing most best practices guide told you to use).

Update (march 31, 2010) :

Looks like there is currently no way to get the script directory from PowerGUIScriptEditorHost, so I’ve modified my script to return the current directory (and a warning) instead of throwing an error.

Read More

Finally got the time to install the fantastic SyntaxHighlighter on my blog so I can post my code more easily.

I just followed the well done Blogger Syntax Highlighting guide from MLA Wire.

So I’ve added the following code in my Blogger site’s template, just before de </head> tag :

<link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'/>

<!-- add brushes here --> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPowerShell.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/>

<script type='text/javascript'>
  SyntaxHighlighter.config.bloggerMode = true;
  SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.1.364/scripts/clipboard.swf'; 
  SyntaxHighlighter.all();
</script>
Read More

A friend of mine sent me this comic.

Do you have a flat screen TV ?

FlatscreenTV

Read More

Daniel Oxley has created a debugger for custom scripts in Microsoft Deployment Toolkit.

You should look at it : MDT Debugger

Read More

I’ve installed the “Outlook Social Connector 32 bit (February 2010 Beta)” on my Outlook 2010 Beta following the instructions on the Outlook blog but I keep getting the following error :

OSCerror

If you found how to make it works Contact Me

Read More
Microsoft is making a slew of virtualization-related announcements on March 18 -- including one that will be welcome by customers who've been stymied by the chip-level virtualization requirements for running Windows 7 in XP Mode.

Source : All about Microsoft

Read More

I recently installed Microsoft Office 2010 Beta, I choosed to keep my Office 2007 applications and to only install Outlook 2010 and Office 2010 Shared Components. I did not installed Access 2010.

After that my Microsoft Access 2007 crashed every time I opened a database that use the CurrentProject.Connection object in the code.

It seems that Office 2010 setup installed the “Microsoft Office 14.0 Access Database Engine Object Library (Beta)” component even if I did not choosed to install Access 2010. Even worst it also removed the reference to the “Microsoft Office 12.0 Access Database Engine Object Library” component witch is require by Access 2007.

How to fix this ?

Do a repair of Microsoft Office 2007 installation and everything will be back to normal. Except if you played with the References in your Project (Database tools > Visual Basic > Tools > References), you may have to un check all references to “Microsoft Office 14.0 Access” objects and recheck all references to “Microsoft Office 12.0 Access”.

Read More

Every time I want to share a YouTube video on my facebook page I forgot how to do it, so I though I should post how to do it on my blog :

How to Post a YouTube Video on Facebook

You can also watch this video :

Read More
Last month, Microsoft rolled out a controversial anti-piracy update for Windows 7. Everything you've read about KB971033 so far, including my report last week, has been based on what Microsoft said it was going to do. But what does this update really do? I took a close look using my best CSI toolkit. Here are the details Microsoft doesn't tell you about.

Source : Ed Bott's Microsoft Report

Read More
I've been hanging out with a bad crowd lately, trying out popular hacking tools and utilities to see if I could install Windows 7 without paying for it. Unfortunately, I succeeded. In this post, I'll share my experiences, including close encounters with some very nasty malware and some analysis on how the latest showdown between Microsoft and the pirates is likely to play out.

Source : Ed Bott's Microsoft Report

Read More
Next PostNewer Posts Previous PostOlder Posts Home