Novell Home

Make batch file run but not be visible

Novell Cool Solutions: Question & Answer

Posted: 6 Oct 2004

Q:
What are the file rights to get a batch file to run, but not be able to run DIR and see it?

I can run 'TYPE test.bat' and see the output, but I can't do 'test.bat'. Any thoughts?

What I want to do is have a ZENworks application run a batch (it has a password in it) but I don't want the user to "see" the file.



A:
Here are a couple of ideas:

  • Run the batch file as an "secure system user".
    Don't give users rights to the batch file, just the workstation.
    Users will not be able to see it.
  • In the application object select Run Options, Environment and select Hidden in the Run frame.
    Select Identification, Icon and uncheck Show Progress.
    The batch file will never be seen by the user.
  • Also, if you don't want the password in the batch file, pass it into the batch file from the application object.
    Put the password in the application object, run options, application under parameters.
    Edit your batch file and replace the password with %1.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.