I am a trying to use the free version of PDQ to deploy some simple .bat files, and I'm having trouble with one in particular. It is a .bat used to install a specific version of Java needed for an older application - unfortunately I don't have an .msi available and re-wrapping isn't an option. The BAT works flawlessly when I run it locally on my computer, but if I deploy through PDQ it kicks back a "The directory name is invalid" error.
The contents of the BAT are below:
copy \\dafiler\sw\Win10\sw\Java\jre1.6.0_45\Temp\Java645.exe C:\Temp C:\Temp\java645.exe /s
C:\Windows\AdminArsenal\PDQDeployRunner\service-1\exec>copy \\dafiler\sw\Win10\sw\Java\jre1.6.0_45\Temp\Java645.exe C:\Temp 1 file(s) copied. C:\Windows\AdminArsenal\PDQDeployRunner\service-1\exec>C:\Temp\java645.exe /s The directory name is invalid.
I have tried tweaking and changing things about 30 times now, and can't figure out why it won't run the .exe from C:\Temp. Some of the changes I've tried are to add a CD to C:\Temp, or to copy the installer exe to different paths, but nothing seems to work. I can confirm it copies the file to the right location, but it just refuses to run.
I've also tried the fix listed here to no avail: https://support.microsoft.com/en-us/help/832434/the-directory-name-is-invalid-error-message-when-you-start-cmd-exe-or