11-28-2022 10:35 AM
I'm trying to add a third party driver to a LabVIEW installer, but I'm running into issues. I've tried following the instructions in the following article:
I made a test .bat file which copies a test folder to my desktop. This test folder contains a 'HelloWorld.bat' to simulate running a 'setup.exe'.
This .bat file seems to be trying to run the HelloWorld.bat file before it's finished copying. Instead of running the HelloWorld script, I get a default command prompt. What am I doing wrong?
Solved! Go to Solution.
11-28-2022 01:10 PM - edited 11-28-2022 01:13 PM
Google finally came through.
Apparently the "start" command requires a title before the path to the executable. Ex:
START "title" [options] "HelloWorld.exe" [parameters]
Adding empty quotes before my HelloWorld.bat solved the problem:
xcopy "%cd%\drivers" "C:\Users\Astovio\Desktop\drivers" /E /I
start "" "C:\Users\Astovio\Desktop\drivers\HelloWorld.bat"