opening comet.exe with powershell


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by andy on May 21, 2020 at 08:45:29:

goal is to stop using mapped drive to open c32. currently we have a .bat file that maps to a q drive.

Q:
CD\C32
COMET.EXE /PN=%USERNAME% /KEYFILE=AUTOLOG.TXT


Would like to use UNC path. But cmd doesnt support UNC, so here's my powershell script:

Set-Location \\comet\comet\c32\
Start-Process "comet.exe" -ArgumentList "/pn=%username% /keyfile=autolog.txt"


In theory this should work... it opens the Comet pop-up, but before I am able to hit details it force quits the application almost instantly. I did notice if I open comet.exe directly (by double clicking the app) and then run the script it works. Any idea why it opens and closes, almost immediately?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]