THANK YOU VERY MUCH!!!!!!!!!!!!!!!! I've been looking for a code like that for a while now (no, I'm definetely not a expert in batch coding) But fact is... I've removed the filedeleting part.... So I can't use this code anymore... But I can use it in the DriverPacks batch files Thanks again! , I've been using code like that since I first created my update pack 3 months ago . Here's what I use. This doesn't require a rename command. rem Compressing Files for /f %%i in ('dir Compress /b') do makecab /D CompressionType=LZX /D CompressionMemory=21 Compress\%%i del compress\*.* /q /fYou're proficient enough with batch files that you can probably modify it to better fit your needs (this one looks for files in a compress directory and woks with them there).