|
MY PROJECT IS SGFS I HAD TO DESIGN A PROGRAM THAT WILL STORE A TEXT FILE AND ENCRYPT IT AND SPLIT IT AND CHECK THE NO OF SYS ON NETWORK AND THEN SEND THE SPLIT FILES TO EACH AND NO SYS HAS ALL THE FILES BUT ONLY ONE SPLIT FILE .
WHEN ANY OF THE COMPUTER IN THE NETWORK WANTS THE COMPLETE FILE THEN WHEN HE WILL PRESS SAY FULL FILE THEN ALL THE FILES FROM OTHER SYS HAVE TO BE COLLECTED AND JOINED TO SHOW HIM THE COMPLETE FILE. THIS IS DONE VERY COMPLECETEDLY USING C LANGUAGE CAN ANY ONE HELP ME DOING THIS MY EMAIL ID IS arunisgood@gmail.com
i achually tried this way I HAVE SPLITTING AND JOINING SOFTWARE AND COMMAND INTERFACE TO IT BUT I DONT HAVE ENCRYTOR IN COMMAND INTERFACE. I THOUGHT OF OPENING THE .EXE FILE THROUGH C AND GET THE WORK DONE BEHIND THE SCREEN IT WAS IMPOSIBLE.
I HERED YOU ALL HERE MAKE IT POSSIBLE. HERE IS THE COMMAND INTERFACE OF THE SPLITTER Command-Line Interface
Since v3.0, FFSJ has published its command-line interface (CLI) in order to make FFSJ more flexible.
Command-Line Format:
"FFSJ.exe" "Parameter 1" "Parameter 2" ...
* FFSJ.exe: FFSJ program file, including the full path if needed, e.g. "c:\windows\system32\FFSJ\FFSJ.exe" * Individual parameters must be separated by space, and each parameter should be surrounded by double quote character (").
Notes:
* If the command-line parameters provided enough information, FFSJ performs the task immediately and exit; otherwise, users have to complete all missing fields in FFSJ window before performing the task. * Try not to execute more than 1 task at once, this make FFSJ run much slower. To split (join) multiple files, let's split (join) them successively using a .BAT file, or using WaitForSingleObject Windows API function if you execute FFSJ command-lines from your application. * Unicode file names are supported in FFSJ command-line interface. However, Unicode file names are not supported in .BAT file; to split/join multiple files named in Unicode, you have to write your own application to launch FFSJ. (AFAIK, please let me know if you have any better solution).
Command-Line Parameters to split
Parameter
Description -Task=Split Required. The task to perform (Splitting) -Input=Path\FileName Required. Path\FileName: full path to the input file (source file) -Output=Path Optional. Path is the full path to the output directory. If this parameter is omitted, the source directory will be used. -PartCount=N Presented if you want to split the source file to N equal-size parts (0<N<1000). If this parameter is omitted, -Limit parameter must be presented -Limit=S Presented if you want to split the source file after every S bytes of data (valid only if the -PartCount parameter was omitted). -Password=PWD Optional. PWD is the password used to encrypt data in output split parts. If this parameter is omitted, the output files will be named with extensions: .001, .002,..., otherwise they will be named with extensions: .__a, .__b, ...Password is case-sensitive -DeleteInput Optional. If this parameter is presented, FFSJ will delete the source file after splitting -Hide Optional. Hide FFSJ window, perform the task silently.
Examples:
To split file c:\test\LargeFile.dat to 5 equal-size parts, save to c:\test\SP directory:
"C:\Windows\System32\FFSJ\FFSJ.exe" "-Task=Split" "-Input=c:\test\LargeFile.dat" "-Output=c:\test\SP\" "-PartCount=5"
To split file c:\test\LargeFile.dat after every 700MB, apply data encryption with password 0123456789, save split parts to the source directory (c:\test):
"C:\Windows\System32\FFSJ\FFSJ.exe" "-Task=Split" "-Input=c:\test\LargeFile.dat" "-Limit=734003200" "-Password=0123456789"
Command-Line Parameters to join
Parameter
Description -Task=Join Required. The task to perform (Joining) -Input=Path\1stFileName Required. Path\1stFileName: full path to the file containing the first part. (.001 or .__a file) -Output=Path\FileName Optional. Path\FileName: full path to the output file. If this parameter is omitted, the output file name will be implied from first part name by removing the last 4 characters. -Password=PWD PWD is the password used to decrypt data if input split parts were encrypted. You must specify the correct password as was used to split. Password is case-sensitive. -MultiDisks Optional. If this parameter is presented, FFSJ will ask for next disk after completely transferring data from current (removable) disk to output file. -DeleteInput Optional. If this parameter is presented, FFSJ will delete input split parts after joining. -Hide Optional. Hide FFSJ window, perform the task silently.
Examples:
To join files, started from c:\test\SP\LargeFile.dat.001, to file c:\test\LargeFile.dat, delete split parts after joining:
"C:\Windows\System32\FFSJ\FFSJ.exe" "-Task=Join" "-Input=c:\test\SP\LargeFile.dat.001" "-Output=c:\test\LargeFile.dat" -DeleteInput
To join files started from c:\test\LargeFile.dat.__a to file c:\test\LargeFile.dat, decrypt data with password 0123456789:
"C:\Windows\System32\FFSJ\FFSJ.exe" "-Task=Join" "-Input=c:\test\LargeFile.dat.__a" "-Password=0123456789"
Command-Line Parameters to perform MD5 checksum
Parameter
Description -Task=Checksum Required. The task to perform (Checksum) -Input=Path\FileName Required. Path\FileName: full path to the file for generating MD5 signature. -Output=OutputForm Required. if OutputForm is Clipboard, MD5 signature of input file will be copy to clipboard, if OutputForm is File:FileName, MD5 signature of input file will be write to a text file specified by FileName. -Hide Optional. Hide FFSJ window, perform the task silently.
Examples:
Copy MD5 signature of c:\test\LargeFile.dat to clipboard
"C:\Windows\System32\FFSJ\FFSJ.exe" "-Task=Checksum" "-Input=c:\test\LargeFile.dat" "-Output=Clipboard"
Write MD5 signature of c:\test\LargeFile.dat to file: c:\test\LargeFile.dat.md5
"C:\Windows\System32\FFSJ\FFSJ.exe" "-Task=Checksum" "-Input=c:\test\LargeFile.dat" "-Output=File:c:\test\LargeFile.dat.md5"
|