winbatch

Spaces in batch script arguments

I have a batch script which needs to perform an action on each of its arguments. Each argument is a file name (there are not switches), and of course file names may contain spaces. The batch script is run either by dragging files into the .bat icon in Explorer or by entering the files at the command line, enclosing arguments with space...

How to write a batch file that will open a program on startup?

At work we need to login to pidgin (the mozilla instant messenger) as soon as we start our computers. But I sometimes foget to manually login. Pidgin is setup in such a way that the password is stored, so all I need to do is click on the icon and I'm logged in automatically. So is there a batch file that can "open" the program as soon a...

Assign to a file a progressive number according to time

There is a way to assign to a file, lets call it abc.txt, a progressive number, that I suppose should come from the time set? So that the name of the file could become for example abc_5367879938763.txt ...

Batch File/Script Delete every 3 files in a directory

I have a folder with sequentially named images (a0001, a0002, a0003, etc.) and I was wondering if there was a way to delete every 3 files without touching the others. So for example, I have: a0001, a0002, a0003, a0004, a0005 a0006, a0007, a0008, a0009 And after I would like to have: a0001, a0005, a0009 ...