Announcement

Collapse
No announcement yet.

Run a Batch file with args as administrator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run a Batch file with args as administrator

    Hi

    I saw an old post regarding launching a batch file as administrator.
    (http://www.indigorose.com/forums/thr...+administrator)

    But this solution doesn't suits for my problem since my batch file need args also.

    this is my code for running the file without administrator privilege:

    Code:
    winVer=GetCurrentWindowsVersion();
    local rc3 = File.Run((SessionVar.Expand("%AppFolder%").."\\RunCACLS.bat",winVer,SessionVar.Expand("%AppFolder%"),SW_HIDE,true);
    Can you advise ?
Working...
X
😀
🥰
🤢
😎
😡
👍
👎