Jump to content

Batch auto rename program

TheSega

So I have this program called CommandCam.exe and its shortcut is copied to startup folder so what it does is it takes a picture every time the computer turns on and saves it in a folder. My problem is that it always saves the picture as image.bmp so it overwrites itself. Can someone make me a batch that runs scheduled and and renames the new image.bmp file to imageX.bmp with X being an increasing number? Thanks in advance

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Assuming that this is the app you're using, that's already a command line argument

 

// Parse command line arguments. Available options:
//
//		/delay DELAY_IN_MILLISECONDS
//		/filename OUTPUT_FILENAME
//		/devnum DEVICE_NUMBER
//		/devname DEVICE_NAME
//		/preview
//		/devlist
//

So you should be able to do this with

c:\>CommandCam.exe /filename %date%

Or whatever naming system you want to use.

Link to comment
Share on other sites

Link to post
Share on other sites

Ended up using this piece of code... It outputs the image as a string of DayandMonth, not too bad. Thank you for your help! 

 

image.png.d4ada50e893a920539a54ab3b164831d.png

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×