Drag and Drop onto Exe to execute


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. int main (int argc, const char *argv[]) {
  2.  
  3. if(argc < 2) {
  4.  
  5. cout << "Drag and drop files to the exe" << endl;
  6. cin.get();
  7. return 0;
  8.  
  9. } else {
  10.  
  11. string line;
  12. for(int i = 1; i < argc; i++) {
  13. cout << "> load image from: " << argv[i] << endl;
  14. }
  15.  
  16. }
  17.  
  18. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.