just rename file
or change code:
unsigned int startnonce;
unsigned int nonces;
unsigned int stagger;
....
if(!sscanf_s(lastslash, "%llu_%u_%u_%u", &key, &startnonce, &nonces, &stagger)) {
...
if(!sscanf_s(outputfile, "%llu_%u_%u_%u", &key, &startnonce, &nonces, &stagger)) {
to
unsigned long long startnonce;
...
if(!sscanf_s(lastslash, "%llu_%
llu_%u_%u", &key, &startnonce, &nonces, &stagger)) {
...
if(!sscanf_s(outputfile, "%llu_%
llu_%u_%u", &key, &startnonce, &nonces, &stagger)) {