I'm trying to add the following command to a batch that runs on startup:

start C:\WINDOWS\system32\rundll32.exe C:\WINDOWS\system32\nvspcap64.dll,ShadowPlayOnSystemStart

but get the module not found error.

If I put the command in the registry Windows../Run it's fine, can also run it manually from the command line, so all the files are there.

Need to put it in the batch file because Nvidia decides periodically to delete the Windows../Run entry lol

I've tried cmd /c C:\WINDOWS\system32\rundll32.exe C:\WINDOWS\system32\nvspcap64.dll,ShadowPlayOnSystemStart

but didn't work. It's a batch file with lots of other stuff especially for programs that need long delays after boot, command still doesn't work after 2-3 min delays either.

maybe some better cmd parms could help??


Turns out it was because of my quiet exec C# program which runs that batch file with:

procStartInfo.RedirectStandardOutput = true;
procStartInfo.UseShellExecute = false;
procStartInfo.CreateNoWindow = true;

So to avoid a new batch file which would popup the black cmd window I put it in the Task scheduler and seems fine. Nvidia better not delete it!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.