Skip to content

Instantly share code, notes, and snippets.

@MartinBspheroid
Created December 17, 2020 11:04
Show Gist options
  • Save MartinBspheroid/790a98b9895566217d47a9aa283efbc2 to your computer and use it in GitHub Desktop.
Save MartinBspheroid/790a98b9895566217d47a9aa283efbc2 to your computer and use it in GitHub Desktop.

Revisions

  1. MartinBspheroid created this gist Dec 17, 2020.
    16 changes: 16 additions & 0 deletions openDirectory.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #pragma once
    #include <Windows.h>
    #include <string>

    void openDirectory(std::string path) {

    std::string cmd = "explorer " + path;
    system(cmd.c_str());
    }

    int main() {
    openDirectory("C:\\Users\\martin.blasko\\Runner");
    return 1;


    }