It is very common to want to add a directory of files to your source control system. With Perforce the command line client doesn’t support this natively. I would think that a command like this would work: “p4 add …”. But unfortunately Perforce displays this non-useful message when you try that:
Can’t add filenames with wildcards [@#%*] in them.
Use -f option to force add.
Instead you have to use a one line shell command to do this. On Windows try this:
“dir /b /s /a-d | p4 -x – add”
For non-Windows platforms you’ll have to do a similar command. Just change the ‘dir’ part to whatever you use to display files in your OS.
Remote Desktop is one of the best features of Windows. Unfortunately all the different Windows version of Remote Desktop seem to have a copy and paste bug. Pasting from the local machine to the remote machine in Remote Desktop will just randomly stop working.
I’ve been plagued with this problem for a long time but I never found a way to fix it. Now I found a simple method that works: On the remote machine kill the rdpclip.exe task and restart it. Pasting will immediately start working again!
Kill the rdpclip.exe task whichever way you want. You can use Task Manager, or you can use this one line command to kill and restart it automatically.
taskkill.exe /im rdpclip.exe & rdpclip.exe
The Google Chrome Omnibox is really useful for quick Google searches. It can also be easily customized to do quick searches for your most commonly used websites. I buy a lot of things from Amazon so I setup a quick Amazon search. Here is how to do it:
- In the upper right corner of Chrome click the icon that looks like three horizontal lines.
- Click the “Settings” menu item near the bottom of the menu.
- Click the “Manage Search Engines” button in the “Search” section.
- The “Search Engines” window pops up. Look at the lower box called “Other search engines”.
- There should be three boxes where you can enter your new Amazon search engine. Paste these values in each of the boxes:
- Left Box: Amazon
- Middle Box: a
- Right Box:
- Close out of all the dialogs.
Now from the Chrome browser click in the address bar and type the letter “a” followed by a space. The address bar should get a blue box on the left side that says “Search Amazon:”. Start typing your Amazon search query and hit the Enter button. You should now get sent directly to your Amazon search results page.
Now anytime you want to search for something on Amazon you can save a few steps by searching right from your Chrome address bar. A few seconds saved for each search will add up for frequent Amazon shoppers. Let me know in the comments if you have any problems getting this to work and I can help you out.