Appium log file - Access Denied when trying to open it

In order to figure if Appium server is up I want to check Appium Log file, but when trying to open the log file I get Access Denied…

Someone know why? and how can I fix it?

Or maybe other way to check if Appium Server Status?

Thank you

Can you please tell which command you use to initialize appium ?

Hi pavanbachu,
Yes this is the commands I have used:

        System.Diagnostics.Process process;
        process = new System.Diagnostics.Process();
        System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
        startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized; //Change to Maximized or Hidden to debug Appium
        startInfo.FileName = AppiumNodePath;
        startInfo.Arguments = AppiumJSPath + " --address " + AppiumServerIP + " --port " + AppiumServerPort + " --automation-name Appium --log-no-color --sessions-override --log " + logPath;
        process.StartInfo = startInfo;