How to delete all folders in current directory using command line (cmd.exe) or batch files?
How to delete all empty directories in current folder:
FOR /D %f IN (*.*) DO RD "%f"
How to delete all directories / folders in current directory / folder:
FOR /D %f IN (*.*) DO RD "%f" /S /Q
If you are using FOR in batch file, you must use double % signs.
FOR /D %%f IN (*.*) DO RD "%%f" /S /Q
Disclaimer: this works for me and my clients today (Sep 2010). If Google or one on the web browsers change something, this may break all tracking, so use this on your own risk.
Below is working code fragments. In the process of making the code work, there was following problems / symptoms:
- Chrome and Safari refused to follow / ping image src at all;
- Firefox seemed to ignore / not follow googleadservices.com issued redirect 302 to googleads.g.doubleclick.net;
- It all seemed like some sort of Same origin policy;
- Firefox plug-in Firebug Net Panel showed strange question marks in Persist mode (seemed like request never completes). And on next click it showed – aborted.
Your HTML code:
<a href="http://some-lead-page-where-you-cannot-add-or-change-code" onclick="googletrack()">Some lead / sale / page view / other action</a>
Simple example code:
Example code with custom label passed as parameter:
Other fields such as value, etc. can be added as needed.
Tested on Internet Explorer 8.0.7600.16385, Mozilla Firefox 3.6.8, Google Chrome 6.0.472.53, Opera 10.61, Apple Safari 5.0.1.
Updated Sep 17, 2010.
stackoverflow.com – Strangest programming language feature
Kyle Brandt writes about – Should Developers have Access to Production?
International Telecommunications Union is considering eliminating leap seconds from the Coordinated Universal Time (UTC). Read here.
Icons of the Web. A large-scale scan of the top million web sites (per
Alexa traffic data) was performed. We retrieved each site’s icon…
Searching For Backdoors From Rogue IT Admin / Staff
Joel on Software – Command and Conquer and the Herd of Coconuts