Skip to content

Instantly share code, notes, and snippets.

@stephanschulz
Last active June 13, 2016 13:02
Show Gist options
  • Save stephanschulz/e255ea4dc3ff4e2e712aa9bf3ec94b43 to your computer and use it in GitHub Desktop.
Save stephanschulz/e255ea4dc3ff4e2e712aa9bf3ec94b43 to your computer and use it in GitHub Desktop.
char myScript[255];
sprintf(myScript, "osascript -e 'try' -e 'mount volume \"smb://192.168.1.237/admin/Desktop\" as user name \"HERE_ADD_YOUR_USERNAME\" with password \"HERE_ADD_YOUR_PASSWORD\"' -e 'end try'");
std::system(myScript);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment