Some Fellow
Home Product Support
SSharing

Download SSFront PSScript Features HowtoUse Movie Sample About Secret Sharing Support License Terms


BatchSSharingPro

Batch file for using the application "SSharing Pro" on the command line.


GitHub

It is also available on GitHub.


Download

You can download BatchSSharingPro for free from:

Detail

"SSharing Pro" is an application that runs on Windows.
It will be installed in C:\Program Files\WindowsApps, but if you try to run an application in this folder on the command line, you will not be able to specify the EXE file directly.
There are the following restrictions when running from the command line:


  1. Long command
  2. When running from the command line, you must type:

    start shell:AppsFolder\PackageFamilyName!ApplicationId

    This is a very long and annoying command.

    Note : "PackageFamilyName" and "ApplicationId" are different for each application.


  3. The current directory is fixed
  4. The current directory will always be C:\WINDOWS\system32. For those who have used the command line until now, this is a difficult environment to use.

  5. Do not wait for processing to complete
  6. If you run it in a batch file, proceed to the next step without waiting for the process to complete. Even if you create a batch file that copies the shared file after share, it will try to copy the shared file before the share process is finished. This will not copy the shared files successfully. This drastically reduces the effectiveness of the batch file.


We have prepared a PowerShell script SSharing.ps1 to solve these problems.


Special options

The above 2 and 3 cannot be solved only by scripts and batch files. "SSharing Pro" has special options to deal with these.

-cur option

This is an option to specify the current directory.
SSharing.ps1 specifies the directory where the script was executed in the -cur option.


-event option

This is an option to synchronize with "SSharing Pro".
SSharing.ps1 doesn't finish processing until "SSharing Pro" is complete.
Follow the steps below to synchronize with "SSharing Pro".
The event name "xxx" can be freely selected.

1. Creating an Event named "xxx".
2. Creating a Mutex named "xxx_2".
3. Run "SSharing Pro" with the option "-event xxx".
4. Waiting for Event.
5. Waiting for Mutex.


How to use "SSharing.ps1"

If you want to share _ReadMe.txt, enter the following at the command line:

powershell -Command "& './SSharing.ps1'" -cmd -encode -en_n 5 -en_k 3 _ReadMe.txt

Note: Place the following files in the current directory and execute.
SSharing.ps1
_ReadMe.txt


Batch Files

Base

In the "Base" folder, we have prepared a batch file for each "SSharing Pro" option.
If you don't know how to specify the options, copy them from these files and use them.


VariousUses

In the "VariousUses" folder, we have prepared a more advanced batch file according to the purpose.

Lisence

MIT License