hexagon logo

Script Demand - goal is open pdf with different user

Hello all,

I am trying to have a pdf open using a different user. I have managed to do so using a bat file containing a runas command executed with a an external commande but the thing is that I have a cmd popup that I would like to avoid. By creating a .vbs file that runs this bat file, I am able to open the pdf without the cmd popup but pcdmis seems to be unable to run this .vbs file. Is it possible thorugh basic scripting to open that bat file or the pdf directly using another user? Maybe start a task scheduled on demand?

Thanks in advance for your ideas!
Parents
  • You're saying that a CMD prompt window pop up and you don't want that?


    Yes indeed. It is the way bat files work since they run a cmd command. Running them through a shortcut in which a setting "RUN: minimized" has been selected seems to solve the problem, although I have not find a way to run shortcuts with pcdmis. It points directly to the exe or bat file selected.
Reply
  • You're saying that a CMD prompt window pop up and you don't want that?


    Yes indeed. It is the way bat files work since they run a cmd command. Running them through a shortcut in which a setting "RUN: minimized" has been selected seems to solve the problem, although I have not find a way to run shortcuts with pcdmis. It points directly to the exe or bat file selected.
Children
No Data