Text-xml
Just stumbled on this cool PowerShell method. Below is are a couple of examples of how I see myself using it:
|
73> ni -type file -value “<crap></xml>” -name “crap.xml” Directory: Microsoft.PowerShell.Core\FileSystem::C:\projects\depot\Test Mode LastWriteTime Length Name 74> test-xml .\crap.xml Directory: Microsoft.PowerShell.Core\FileSystem::C:\projects\depot\Test Mode LastWriteTime Length Name 76> test-xml .\valid.xml |
This will help me out when I fiddling around with all the nAnt build scripts I seem to be playing with these days!
Making use of "Send To" in Windows XP
One of my favourite utilities is Lutz Roeder’s Reflector. But I didn’t like the way I had to always open it then copy the DLL I am trying to reflect on into it (I’m lazy ok!). So adding a link into the “SendTo” folder enables me to right click a DLL and send it to reflector.
This is how I did it:
1. Open the SendTo folder:
- Open the run dialog box (Windows Key + R) and type “SendTo” then click enter.
- OR manually, it will be in the “Documents and Settings\Username\SendTo”.
2. Find the Reflector DLL:
- This is wherever you decided to put the Reflector DLL. I have mine in a Reflector folder under Program files.
3. Right Click drag into the SendTo folder. Click “create shortcut here” and you’re done!