Wanna merge files recursively from the DOS command line? SQL Files All Over The Place – Problem! I do a lot of grunt work in DOS. Also, I have dozens of SQL scripts in multiple folders that need to be run sequentially in order to recreate the database, create the database objects, and seed the initial data in the system. I can run them one at a time, eating up half an hour or...
Before Windows 7, I had to muck with the registry to get right-click context in Windows Explorer to open a DOS prompt in the folder I was viewing. Windows 7 does it for free.
Simple hold SHIFT and RIGHT CLICK within Windows Explorer to view the option to open a command prompt in that folder.
I log into a lot of client production servers and do not have the luxury of installing my favorite GUI tools, such as UltraEdit, which (among other things) easily allows me to search within files. On these servers I am limited to what is already installed. Just today I was forced to search an entire website on a client server for a file that that might contain the string “bill”. So...
I needed to delete all .svn subversion folders and the files within them and did not want to take the time to do it manually. This little command prompt script will recurse a folder and delete all folders names “.svn” and all the files within.
for /d /r . %d in (.svn) do @if exist "%d" rd /s/q "%d"