I need a command line option to do diablo 4 scan and repair from a batch file. Since scan and repair takes over 4 hours on my machine I would like to run this at night before it shuts down the system
Why are you doing a scan and repair at a point where you need to automate it?
If you are doing it that much, there is something wrong.
I can count on one hand how many times I have had to use scan and repair for ALL of my games…
You are fortunate. Our environments are different. I would still like the cmdline option to do scan and repair if it is available. A “no it is no available” is acceptable too. Perhaps from someone who knows their interface. Good to know that all of your games have a scan and repair option.
Are you saying yours doesn’t?
Here’s the million dollar question though.
Why do you need this option? Why are you having issues to the point where you need to run it that often or need to find a way to command line it in the first place?
Is the game corrupting the files that often?
Because if so, then you are having a larger issue than needing to command line scan/repair. That means you are having corruption caused by either memory issues or drive issues.
Something you might want to look into. Not only that, the time frame you mentioned seems… longer than it should be. Which also indicates that more is going on than it should.
Just a suggestion. But I would like to know what has led you to this point in the first place, because it doesn’t make sense.
Yes, I am saying that the only game I own that has scan and repair as an option is Diablo 4. It really is none of your business why I would like this option and your assumptions as to WHY I would like this option, simply shows your lack of understanding for backup and recovery. Would you like to know why I also run backup’s once a week on my systems, and why I have copies in iron mountain? I run scan and repair on a weekly basis to AVOID having problems in the first place and to know that my backup is of a good copy. Now that your curiosity is satiated I assume you do not know if there is a command line option to do what I need but thank you for your input. PS I have more than games on my machines… peace…
All you are doing is causing stress on the drive for 4 hours for no reason.
I mean.
Sure, go ahead and do that then, not going to wear out my drive… But the Scan/Repair option is provided for the rare event that you actually HAVE a problem. Not to just run willy nilly just because you think you need to.
Doing system backups? Kudos. I applaud you for taking the time to back up and protect your data. That is a good thing, and more people should do this.
Running unnecessary repairs on your game when it doesn’t have anything to repair? Don’t do this. It does nothing to prevent issues. Its just wasting your time and your SSD write cycles. But that’s my educated opinion, after years of playing Blizzard games and decades of working on computers.
As for a command line argument to manually scan and repair files as the Blizzard tool does them? No, there won’t be a tool for this. There might be a way to trigger the repair via the method Blizzard employs within the launcher, but that would mean understanding the coding of the launcher, and to be honest, tampering with their code to make your own scan/repair tool could also have other repercussions, such as the tool not operating the same way and causing problems, or worse Blizzard’s software reporting an improper use of the software they didn’t allow and potentially risking an account ban over it.
One of the things they prohibit is modification of their program files for uses outside of their intended behavior. This may technically qualify for that.
Another thing to keep in mind. Blizzard installs the files as large contiguous CASC files. This allows Blizzard to do in place updates. Here’s the thing:
- The game files you see in the game folder are the CASC storage files. Think of them like special Zip files. Most disk checking tools are only going to see those large files, not all the individual tiny files inside. Which is why the Scan/Repair option is there in the launcher.
- Updates can fragment the CASC files over time. After a few years, this leads to some slowdown in accessing the files. Its a small problem, but it does occur.
- Scan and Repair only checks the files for errors. It does not fix this fragmentation that can occur.
The only way to repair that, would be to remove the current install and download the entire game again as a fresh install. That would rebuild the CASC file system as contiguous files once again.
Here’s my suggestion:
Simply back up the game folder. I would even keep a USB memory drive specifically for that game, and backup to that like once month, along with the weekly backup on your larger storage.
This will allow you to keep a good backup in case the game files were to be damaged by an update or something later. (at which point you can try to fix it with Scan/Repair) Plus you can use that back up to “reinstall” the game files if you ever had to remove a damaged installation, move to a new PC, or another PC.
Good luck.
Game on.
just a final thought if scan does not find any errors then there is no repair. I found something that I think I can make work on a non-blizzard forum. Thank you for all your helpful suggestions. I think I will keep the recovery protocols I already have in place.
True. And you just spent 4 hours waiting for nothing and its still putting demand on the drive. But hey, its your time, not mine. *shrug
Good luck I guess. One final note:
Any copying or work on the files outside of the launcher while the launcher is running will trigger problems. I know this, because I made the mistake once of making a backup of the game data in a game folder while the launcher was active. And it damaged the game files and I had to run a scan/repair to fix the damage, ironically. (One of the very few times I did this) I think I ended up later just deleting the install and re-downloading it, just to be on the safe side.
But just an FYI.
Game on.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.