How to loop through files matching wildcard in batch file

I have a set of base filenames, for each name ‘f’ there are exactly two files, ‘f.in’ and ‘f.out’. I want to write a batch file (in Windows XP) which goes through all the filenames, for each one it should: Display the base name ‘f’ Perform an action on ‘f.in’ Perform another action on ‘f.out’ … Read more

What’s the fastest way to delete a large folder in Windows?

This question’s answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. I want to delete a folder that contains thousands of files and folders. If I use Windows Explorer to delete the folder it can take 10-15 minutes (not always, but often). Is … Read more

Vim for Windows – What do I type to save and exit from a file?

Using Windows XP I accidentally typed git commit -a instead of git commit -am “My commit message”, and now I’m viewing my CMD prompt filled with the file version of my commit message (“Please enter the commit message for your…”). I’ve added my message to the top, but now I can’t figure out how to save … Read more

How do I manually create a file with a . (dot) prefix in Windows? For example, .htaccess

I want to create a .htaccess file manually and discovered it seems impossible through the Windows UI. I get a “you must type a filename.” message. There has to be a way to create files with . as a prefix in Windows. Can this be done manually? 16 Answers 16 Windows 7, 8 & 10 … Read more

How to fix an UnsatisfiedLinkError (Can’t find dependent libraries) in a JNI project

I’m pretty sure the classpath and the shared library search path have little to do with each other. According to The JNI Book (which admittedly is old), on Windows if you do not use the java.library.path system property, the DLL needs to be in the current working directory or in a directory listed in the Windows PATH environment variable. Update: Looks … Read more