Command line arguments
If it is a file path, then upload it; if it is a URL, then download it and upload it. You can use multiple paths to upload multiple files at the same time.
Allows MyFile Share to load multiple instances. By default, it is not possible to open more than one instance of MyFile Share.
Loads MyFile Share in portable mode. In portable mode, the application will create a folder named "MyFile Share" (if it doesn't already exist) in its startup path to save configuration files and images.
Loads MyFile Share to the tray without showing the main window. Only if the "Show tray icon" setting is enabled.
MyFile Share will open with default settings and won't save any settings (ApplicationConfig.json, HotkeysConfig.json, UploadersConfig.json, History.xml) on the hard disk.
You can use any hotkey action as a command-line argument.
Example: -RectangleRegion, -PrintScreen, -ClipboardUpload, -ScreenColorPicker etc.
You can find the full list of hotkey actions in public enum HotkeyType here.
These actions support additional parameters:
-FileUpload "file path"-PinToScreen "image file path"-PinToScreenFromFile "image file path"-ImageEditor "image file path"-ImageBeautifier "image file path"-ImageEffects "image file path"-ImageViewer "image file path"-VideoConverter "video file path"-OCR "image file path"-QRCode "image file path"-HashCheck "file path"-Metadata "file path"-StripMetadata "file path"You can execute your workflows (hotkey tasks) using their descriptions.
Example: -workflow "Capture rectangle region & annotate"
This executes your custom hotkey with the matching description.
This command must be used together with a file or URL path. The upload will use this task setting. Only the first matched task command will be used and the rest will be ignored. The position of the task command doesn't matter.
Example: "C:\\MyFile Share.png" -task "Upload to Imgur"
After all tasks are completed, MyFile Share will close automatically.
For example, it can be used to upload two images at the same time and then close MyFile Share after all uploads are finished.
On startup, if hotkey registration fails, don't show the hotkey registration error window.
The specified .sxcu file path is used to add a custom uploader configuration to MyFile Share. It is also used for .sxcu file association.
The specified .sxie file path is used to add an image effect configuration to MyFile Share. It is also used for .sxie file association.
When setup is silent, the wizard and the background window are not displayed, but the installation progress window is.
When setup is very silent, the installation progress window is also not displayed.
After setup is complete, MyFile Share won't run automatically.
This command ensures that the setup will not apply initial tasks again, such as creating a desktop shortcut or context menu entries. It is used when updating MyFile Share.
These registry settings should reside in either the HKEY_LOCAL_MACHINE\SOFTWARE\MyFile Share key or the HKEY_CURRENT_USER\SOFTWARE\MyFile Share key. HKEY_LOCAL_MACHINE has priority over HKEY_CURRENT_USER while reading the settings.
REG_DWORDDisables update checks.
REG_DWORDDisables uploads application-wide.
REG_DWORDDisables debug log file saving.
REG_SZOverrides the personal path of MyFile Share, which by default is the %UserProfile%\Documents\MyFile Share folder.
By using MyFile Share command-line arguments, you can add custom actions to the Windows context menu.
The MyFile Share app uses the registry to add "Upload with MyFile Share" and "Edit with MyFile Share" options to the Windows context menu. Similarly, you can modify the registry to add other MyFile Share actions.
For example, to add a "Pin to screen" button for image files, you can use the following registry files:
AddPinToScreen.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\MyFile SharePinToScreen]
@="Pin to screen"
"Icon"="\"C:\\Program Files\\MyFile Share\\MyFile Share.exe\",0"
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\MyFile SharePinToScreen\command]
@="\"C:\\Program Files\\MyFile Share\\MyFile Share.exe\" -PinToScreen \"%1\""
RemovePinToScreen.reg
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\MyFile SharePinToScreen]
This is how MyFile Share decides the personal path, in this order:
-portable or -p CLI flag exists, then use the .\MyFile Share folder..\Portable file exists, then use the .\MyFile Share folder.PersonalPath value exists in the registry, then use it.%LocalAppData%\MyFile Share\PersonalPath.cfg exists, then move it to %UserProfile%\Documents\MyFile Share\PersonalPath.cfg..\PersonalPath.cfg exists, then use the file path in it.%UserProfile%\Documents\MyFile Share\PersonalPath.cfg exists, then use the file path in it.%UserProfile%\Documents\MyFile Share.For example, the portable build of MyFile Share uses step 2 here.