Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I know how to pass parameters form one EXE to another while creating.

I've done this by creating a new EXE and pass them while running.

But my problem is that how to pass a string which is over 3000 lines.
How to do this.
Posted
Comments
Sergey Alexandrovich Kryukov 11-Aug-14 3:19am    
This tells me only one simple thing: this is amazing, brutal abuse. You simply don't need to pass so much data, and, most likely, don't need to start one application from another one, which itself is a bad sign in many cases.
—SA

1 solution

If you create the other process by a call to System.Diagnostics.Process.Start(), you could write the long string into a temporary file, pass the filename to the new process which then reads the file contents and deletes the file. Not an elegant solution, but a pragmatic workaround.
 
Share this answer
 
Comments
KUMAR619 11-Aug-14 2:48am    
Thanks that's what I've thought.
But is there any other way than text writing.
Because I was asked not to use this method.
Sergey Alexandrovich Kryukov 11-Aug-14 3:20am    
If you were asked, why would you use this method? That advice was really very reasonable; your attempt is one of the greatest abuses among those I saw so far...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900