Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,228 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,898 people online right now. Registration is fast and FREE... Join Now!




help me build a program please

 
Reply to this topicStart new topic

help me build a program please, please i am in need badly i hered people here are amazing

great1
22 Feb, 2007 - 06:11 PM
Post #1

New D.I.C Head
*

Joined: 22 Feb, 2007
Posts: 2


My Contributions
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"
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Help Me Build A Program Please
22 Feb, 2007 - 06:32 PM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,984



Thanked: 44 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
I'm sorry but we will not do your work for you. You must post your code that you have completed in an attempt to fulfill your assignment.

We will be happy to help you get it working. Please read the forum rules found here.
User is online!Profile CardPM
+Quote Post

NickDMax
RE: Help Me Build A Program Please
22 Feb, 2007 - 09:26 PM
Post #3

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,859



Thanked: 50 times
Dream Kudos: 550
My Contributions
why do you want to do this in C? It sounds like a job for a scripting language. I think you would be better to approch this from VBS or Perl.

If you are going to do it in C/C++ I think it would be better to just write the encription and splitting/joining within C rather than some outside program.

Windows has an encription engine, or there are tutorials on this site.

If you want to go forward with calling the exe give us some code to work with.
User is offlineProfile CardPM
+Quote Post

great1
RE: Help Me Build A Program Please
20 Mar, 2007 - 11:02 PM
Post #4

New D.I.C Head
*

Joined: 22 Feb, 2007
Posts: 2


My Contributions
QUOTE(NickDMax @ 22 Feb, 2007 - 10:26 PM) *

why do you want to do this in C? It sounds like a job for a scripting language. I think you would be better to approch this from VBS or Perl.

If you are going to do it in C/C++ I think it would be better to just write the encription and splitting/joining within C rather than some outside program.

Windows has an encription engine, or there are tutorials on this site.

If you want to go forward with calling the exe give us some code to work with.




thank you for youR cuncern buti let you some thing
we can pass paramerter from the c turbo line but how i hvae little idea can you give me the full idea


IF YOU CAN GET ME A SGFS SECURE GLOBAL FILE SYSTEM CODE IN C LANGUGAE OUR WORK IS DONE




like to enter anyhting from c to cmd or command promt we use


system("cmd");
first asigning what ever to the cmd string we get them done on command promt

system is the which passes parameetrs from c line to the command promt

This post has been edited by great1: 20 Mar, 2007 - 11:06 PM
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 02:57PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month