Jump to content

auto delete .bmp files?

Go to solution Solved by Beeeyeee,

ah Okay so I got it working! thank you guys for all the help! 

 

I figured out, the actual images that are being saved show a ".still001" or ".still002" but if you open the properties menu you can see they are actually .bmp files. odd right? but its no problem because the other files, even though they show ".bmp" under the properties menu they are actually a .xmp

 

not sure why its saying that but I just changed the code to *.xmp and it works fine now! thank you for your help guys!

Hey guys I run a YouTube channel and when I edit with Premier pro, I use the built in screenshot functionality to save a picture form the video i'm editing and it saves it to a specific folder for thumbnail editing. the problem is... when I save it it saves both a .still (which I can easily edit) and a .bmp that doesn't really show up as anything but I have to delete it every time. is there a way to hide/auto delete these types of files from this folder

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/
Share on other sites

Link to post
Share on other sites

Are you sure you don't have that backwards?  A .bmp is a normal image anyone could edit but I've never heard of a .still before...

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7377688
Share on other sites

Link to post
Share on other sites

2 minutes ago, Ryan_Vickers said:

Are you sure you don't have that backwards?  A .bmp is a normal image anyone could edit but I've never heard of a .still before...

positive. I thought the same thing it looks weird. but yeah the .bmp is actually an Adobe Prelude XMP file.

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7377742
Share on other sites

Link to post
Share on other sites

5 minutes ago, Beeeyeee said:

positive. I thought the same thing it looks weird. but yeah the .bmp is actually an Adobe Prelude XMP file.

hm, strange.  ok well then, to address the issue, one way to do it would be to have a batch script that deletes all .bmp files from that folder.  You could put it in startup so it runs every login, or setup a scheduled task probably.

 

but before we get too far into this, one other question: are you certain that there isn't an option to choose what type of files it creates when taking the snapshot?

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7377764
Share on other sites

Link to post
Share on other sites

2 minutes ago, Ryan_Vickers said:

hm, strange.  ok well then, to address the issue, one way to do it would be to have a batch script that deletes all .bmp files from that folder.  You could put it in startup so it runs every login, or setup a scheduled task probably.

intresting. how do I do that? I know a bit of coding. not much though

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7377776
Share on other sites

Link to post
Share on other sites

Just now, Beeeyeee said:

intresting. how do I do that? I know a bit of coding. not much though

I'm actually not really very familiar at all with windows batch files (tend to spend my time on things of far higher quality and capability :P) but in this case it would probably be a good solution.  That is if the setting solution is not an option (see above; I edited it).  I'll have a look and see what I can come up with.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7377789
Share on other sites

Link to post
Share on other sites

1 minute ago, Ryan_Vickers said:

I'm actually not really very familiar at all with windows batch files (tend to spend my time on things of far higher quality and capability :P) but in this case it would probably be a good solution.  That is if the setting solution is not an option (see above; I edited it).  I'll have a look and see what I can come up with.

Good point i'll look in the settings and see if I can change the file types it saves

 

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7377801
Share on other sites

Link to post
Share on other sites

Just now, Beeeyeee said:

Good point i'll look in the settings and see if I can change the file types it saves

 

If that fails, I think this batch file will actually be much simpler than I thought.  Since the del command supports recursion and wildcards, you could just do something like "del /s *.bmp" in the folder in question.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7377808
Share on other sites

Link to post
Share on other sites

43 minutes ago, Ryan_Vickers said:

If that fails, I think this batch file will actually be much simpler than I thought.  Since the del command supports recursion and wildcards, you could just do something like "del /s *.bmp" in the folder in question.

@Beeeyeee

IIRC, the command would be

del /s /q /f c:\path\to\files\*.bmp

 

del = delete

/s = also erase from subdirectories

/q = quiet, don't ask every time (useful if there are lots of files or if you're automating the deletion, maybe want to disable this the first time :))

/f = also delete read-only files

c:\path\to\file\ should be fairly self-explanatory, :) replace "c" with the respective drive letter

*.bmp = everything with the "bmp" filetype

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7378076
Share on other sites

Link to post
Share on other sites

13 minutes ago, Fetzie said:

@Beeeyeee

IIRC, the command would be

del /s /q /f c:\path\to\files\*.bmp

 

del = delete

/s = also erase from subdirectories

/q = quiet, don't ask every time (useful if there are lots of files or if you're automating the deletion, maybe want to disable this the first time :))

/f = also delete read-only files

c:\path\to\file\ should be fairly self-explanatory, :) replace "c" with the respective drive letter

*.bmp = everything with the "bmp" filetype

Awesome man! thank you thats very helpful! do I just type this in the command prompt? and how would I get that to run automatically?

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7378184
Share on other sites

Link to post
Share on other sites

It's been a while, but the batch file would be something like

 

@echo off

del /s /q /f c:\path\to\files\*.bmp

 

Write it in a notepad window, and save it as "all files" with the filename "deleteBMPs.bat" (for example). If you want it to run when you start the computer you can put it in the startup folder. Otherwise it should run if you double-click it.

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7378232
Share on other sites

Link to post
Share on other sites

1 minute ago, Fetzie said:

It's been a while, but the batch file would be something like

 

@echo off

del /s /q /f c:\path\to\files\*.bmp

 

Write it in a notepad window, and save it as "all files" with the filename "deleteBMPs.bat" (for example). If you want it to run when you start the computer you can put it in the startup folder. Otherwise it should run if you double-click it.

thanks for taking care of that.  I'd be better at doing this on Linux;)

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7378250
Share on other sites

Link to post
Share on other sites

Just now, Ryan_Vickers said:

thanks for taking care of that.  I'd be better at doing this on Linux;)

Same :)

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7378254
Share on other sites

Link to post
Share on other sites

ah Okay so I got it working! thank you guys for all the help! 

 

I figured out, the actual images that are being saved show a ".still001" or ".still002" but if you open the properties menu you can see they are actually .bmp files. odd right? but its no problem because the other files, even though they show ".bmp" under the properties menu they are actually a .xmp

 

not sure why its saying that but I just changed the code to *.xmp and it works fine now! thank you for your help guys!

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7378704
Share on other sites

Link to post
Share on other sites

26 minutes ago, Beeeyeee said:

ah Okay so I got it working! thank you guys for all the help! 

 

I figured out, the actual images that are being saved show a ".still001" or ".still002" but if you open the properties menu you can see they are actually .bmp files. odd right? but its no problem because the other files, even though they show ".bmp" under the properties menu they are actually a .xmp

 

not sure why its saying that but I just changed the code to *.xmp and it works fine now! thank you for your help guys!

Ah that makes sense.  Careful not to be fooled by dumb filenames! :) Always check the actual extension 

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/560698-auto-delete-bmp-files/#findComment-7378859
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

×