Archive for the ‘Windows’ Category

Windows: hold Shift while right clicking in the folder

MAC OS X: System Preferences > Keyboard > Shortcuts > Services: Enable New Terminal at Folder.

Unlocker used to be a great tool to know which process is using certain file and unlock it. But it’s marked as a malware now.

Process Explorer can also achieve the same result. If you don’t have it, you can download it from https://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

  • go to Find->Find Handle or Dll
  • type the file name or directory that is used
  • Click Search, all processes that are using this file or directory will be listed.

processexp

Continuing my last post, batch rename files to lowercase

I need replace some characters in the filenames.

1. Open Powershell

2. Change directory to where those files are stored.

3. Type the following command. The below command is to replace all dash(-) to underscore(_)

Dir | Rename-Item –NewName { $_.name –replace “-“,”_” }

All credits go to http://stackoverflow.com/questions/16636996/replace-or-delete-certain-characters-from-filenames-of-all-files-in-a-folder

1. Open command prompt and change to the directory where files are stored.

2. execute the following command (No line break, just paste it to command line)

for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")

All credits go to http://superuser.com/questions/65302/is-there-a-way-to-batch-rename-files-to-lowercase

LogMeIn is not free any more

Posted: February 16, 2014 in Windows
Tags: ,

Don’t panic, try the Remote Desktop extension in Google Chrome

https://chrome.google.com/webstore/detail/chrome-remote-desktop/gbchcmhmhahfdphkhkmpfmihenigjmpp?hl=en

Steps:

On your Mac/Windows:

  1. Install Plex Media Server, the latest version can be downloaded from http://www.plexapp.com/
  2. Start the app and follow the instruction to config files to be streamed

On your LG Smart TV:

  1. Click the Home button in your remote control
  2. Find MediaLink in my Apps, the icon is as below
  3. Click MediaLink and you should see your Movies, TVs, Music and Photos if you have shared them using Plex media server.
  4. Browse and play

You can also use Smart Share in my Apps.

.Net assembly can be easily deassembled using some free tools, such as ildasm.

Dotfuscator is a free tool included in Visual Studio and it provides a way to make your code more difficult to be read.

Below is my obfuscated assembly loaded from ildasm. You can see all the class name are renamed to some non-sense name. dot

To use Dotfuscator is quite straightforward.

  1. Select the input assemblies
  2. Exclude those resources, namespace and types that don’t need to be renamed. This is very important especially when you are using third party dlls.
  3. Set the destination directory
  4. Build

When i used Dotfuscator for the first time, i kept receiving this error: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “XXXXX.Properties.Resources.resources” was correctly embedded or linked into assembly “XXXXX” at compile time, or that all the satellite assemblies required are loadable and fully signed.

To fix this error, just make sure you have checked the Resources to be excluded in the step 2.

exclude