Click to See Complete Forum and Search --> : Looking for explanation of permissions for cmd.exe


jdbeast00
March 10th, 2006, 04:18 PM
I am using an application that is able to execute scripts from the command line. Basically, I write a batch file that works when I run it from the command line, but when I run by calling it from the program, it usually fails with some access-related error, like "network drive not reachable" or soemthing similar. I am looking for information on what I can do to change the permissions or whatever I need to do in order to get my command line files to execute with the same permissions that they do when I call them from cmd.exe directly. Any help is greatly appreciated!

PeejAvery
March 13th, 2006, 06:17 PM
Sounds to me that it will try to run from your applications running folder. For example say your batch file runs...
cd windows
This will return so long as your application is not running in C:\Program Files. Do you get what I am saying?

mocrotronics
April 6th, 2006, 03:41 PM
You have to find out which account it uses to run commands in your application. Could this be the system account? Cause if you're running commands directly from the prompt it uses your useraccount.

Indeed you have also to verify your starting path of the app.