Announcement

Collapse
No announcement yet.

%windir%?

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

  • %windir%?

    Hi!
    how can i use:
    %appdata%
    %commonprogramfiles%
    %programfiles%
    %temp%
    %userprofile%
    %windir%
    or %COMSPEC% for cmd?
    and many more
    Code:
    http://en.wikipedia.org/wiki/Environment_variable
    use of %windir%//NOTEPAD.EXE does nothing in run.file...

  • #2
    Code:
    local envVar = os.getenv("windir");
    local notepad = envVar.."\\notepad.exe";
    File.Run(notepad);
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      Originally posted by Imagine Programming View Post
      Code:
      local envVar = os.getenv("windir");
      local notepad = envVar.."\\notepad.exe";
      File.Run(notepad);
      There is also the _WindowsFolder Global Variable, read the manual here

      There is also Shell.GetFolder Action, read the manual here
      Last edited by kingzooly; 10-08-2013, 04:21 AM. Reason: Added another resource
      Plugins or Sources MokoX
      BunnyHop 2021 Here

      Comment


      • #4
        thanks!
        ...

        Comment

        Working...
        X