@masklinn said:@Manni said:What would this do: SET @DOSCmd = 'format ' + @Drive + ': /Q' That way you can maximize the amount of free disk space! You forgot /X to force dismount I see you've done this before. ;)