zoukankan      html  css  js  c++  java
  • Windows Explorer Call 1.0

    main.cpp

     1 #include <iostream>
     2 #include <sys/stat.h>
     3 #include <stdlib.h>
     4 #include <string>
     5 
     6 using namespace std;
     7 
     8 int main ( int argc, char* argv[] ) {
     9     struct stat s;
    10     if ( !stat ( argv[1], &s ) && s.st_mode & S_IFDIR ) {
    11         string str = "C:\Windows\explorer.exe ";
    12         str += argv[1];
    13         system ( str.c_str() );
    14         return 0;
    15     }
    16     cout << "Examples: 
    	e .	Open current directory with 'Windows Explorer'." << endl;
    17     return -1;
    18 }

    附件1

  • 相关阅读:
    java后端
    2017-12-11
    二叉树与分治法整理
    javaweb
    安装docker
    爬虫
    lintcode
    DEEPlearning
    剑指offer_by牛客网
    DFS
  • 原文地址:https://www.cnblogs.com/rms365/p/10928439.html
Copyright © 2011-2022 走看看