1

I'm looking to make a shortcut to a program on a network drive where the program and it's name is sometimes updated to a new version. Right now it's located at and named to this.

\\USERZ390\e\Benching\GPU-Z.2.22.0.exe

But periodically the program is updated to something like GPU-Z.2.23.0.exe or GPU-Z.3.1.0.exe, etc. Basically, GPU-Z.*.exe

Is there a way to make a shortcut to this program that accepts wildcards? If not, what about a batch file that runs invisibly (no visible command prompt) without needing to install extra apps?

Thanks in advance, you guys are awesome.

2

Create a shortcut with the command line like

C:\Windows\System32\cmd.exe /c for /f %x in ('dir /b \\USERZ390\e\Benching\GPU-Z.*.exe') do \\USERZ390\e\Benching\%x

If there exists 2 or more executables in this folder that matched a template all of them will be started.

  • Thanks, but it seems to want to wait for GPU-Z program to close before the command prompt terminates itself. Any way to make it so cmd prompt DOESNT show? Otherwise works great. – Ssateneth Jul 12 '19 at 19:23
  • Add start... with hidden cmd option maybe. – Akina Jul 13 '19 at 13:17

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.