Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <Windows.h>
- int main(int argc, char** argv)
- {
- SHELLEXECUTEINFOA shExInfo = { 0 };
- shExInfo.cbSize = sizeof(shExInfo);
- shExInfo.fMask = SEE_MASK_DEFAULT | SEE_MASK_NOCLOSEPROCESS;
- shExInfo.hwnd = 0;
- shExInfo.lpVerb = "";
- shExInfo.lpFile = "C:\\Program Files\\Google\\Drive File Stream\\52.0.6.0\\GoogleDriveFS.exe";
- shExInfo.lpParameters = "";
- shExInfo.lpDirectory = 0;
- shExInfo.nShow = SW_SHOW;
- shExInfo.hInstApp = 0;
- ShellExecuteExA(&shExInfo);
- if(shExInfo.hProcess != 0)
- {
- CloseHandle(shExInfo.hProcess);
- }
- Sleep(15000);
- shExInfo.lpFile = "C:\\Program Files\\FreeFileSync\\RealTimeSync.exe";
- shExInfo.lpParameters = "E:\\github\\sync-gdrive.ffs_real";
- ShellExecuteExA(&shExInfo);
- if (shExInfo.hProcess != 0)
- {
- CloseHandle(shExInfo.hProcess);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment