2

There are some workarounds out there to start cmd.exe as administrator in a specific path. But the problem persists for any link. For example, when starting MatLab it changes to the path in the "Start in" setting.

When starting MatLab as administrator, it always changes to %systemroot%/system32. This is not only annoying, but sometimes if you forget about this and you start other programs, log files or other outputs are written to a system critical path.

Is there any way to enable the administrator to use the "Start in" setting?

Heiko
  • 21

1 Answers1

0

One thing I can think of is to write a batch file which changes the working directory and run your program, and then start that batch file as Administrator.

Make a file runprog.cmd with this content and place it somewhere:

@echo off
cd C:\some\path
some_program.exe

Then create a shortcut to it and change to your icon. This should work.