Using the SHGetSpecialFolderPath() function. It works on Microsft Edge, Google Chrome, and most other browsers with ease. The easiest way to create quick shortcuts to Drive folders or files on the desktop is by dragging the URL on the desktop. I am not sure if there is an portable way to get desktop path but it can be done in following ways: Create Google Drive File or Folder Desktop Shortcut on Mac or Windows PC Method 1- Drag the Drive File or Folder URL to Desktop. So getting the path of the current user's desktop is the problem. Your real question is, You want to save the file in the desktop of the user who is playing the game. This is the best platform to let us hear from you and make our products and services better for you and others. To address your concern about the situation, we’d suggest you kindly vote this UserVoice: Synce Documents, Desktop and Downloads folder on OneDrive on a Mac. Okay I guess the comment clears the problem. We understand the situation and you make a great point. I hope that answers your question but I am not sure if i understand your question correctly, If not please add the details correctly of what you are trying to acheive. Std::ofstream o("/Users/sample/Desktop/save.txt") How to Open Folder Properties on a Mac - Click on this menu and then select the application that you want to use to open that file type from then on. Create a file and write some text to it is simple, here is a sample code: #include
0 Comments
Leave a Reply. |