473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

.Net Sending a filename to a Fortran prog.

1
I have been tasked with writing a front end to a Fortran program and am new to .Net, anyway the frontend works ok apart from when I call the Fortran program.

I am using Process.Start, this calls a batch file which runs the Fortran program, the Fortran program then asks the user for a filename to be input - question is how can I send a filename to the Fortran program??

Upto press I have tried using arguments, but the Fortran program doesn't accept command line arguemnets, I have tried send keys, but all it sends is a \ character...

Any help on this would be appreciated.

regards,

Matt
May 17 '07 #1
2 934
TRScheel
638 Expert 512MB
I have been tasked with writing a front end to a Fortran program and am new to .Net, anyway the frontend works ok apart from when I call the Fortran program.

I am using Process.Start, this calls a batch file which runs the Fortran program, the Fortran program then asks the user for a filename to be input - question is how can I send a filename to the Fortran program??

Upto press I have tried using arguments, but the Fortran program doesn't accept command line arguemnets, I have tried send keys, but all it sends is a \ character...

Any help on this would be appreciated.

regards,

Matt
Fake keypresses perhaps?
May 17 '07 #2
Plater
7,872 Expert 4TB
If you can create a full featured Proccess object, you can "take control" of the Standard-IN and and Standard-Out (and Standard-Error) streams and can use them to send and receive data.

I've only done an intro to fortran class and for the most part just used it for floating point (gotta love that) math.

Unless you're doing some serious calculations, you might try considering re-writing the whole fortran program too.
May 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Gregor Rot | last post by:
Hi, i am sending a pdf file to IE6 and just want the browser to open it directly without asking anything. This doesn't work: Content-type: application/pdf Content-length: size_of_file...
44
by: Carl | last post by:
"Nine Language Performance Round-up: Benchmarking Math & File I/O" http://www.osnews.com/story.php?news_id=5602 I think this is an unfair comparison! I wouldn't dream of developing a numerical...
15
by: Nick Coghlan | last post by:
Thought some folks here might find this one interesting. No great revelations, just a fairly sensible piece on writing readable code :) The whole article:...
2
by: NM | last post by:
Hello all, I am supposed to do some mixed programming with c++ and fortran. I was succeeful in exchanging the 2D arrays from fortran to c++ and the other way, but was unable to that same with...
5
by: morphex | last post by:
Hi, I have an email that's in the utf-8 encoding, and I'm getting this error message when I try to send it using smtplib: * Module smtplib, line 688, in sendmail * Module smtplib, line 485,...
0
by: Ronny Sigo | last post by:
Hello all, I think I solved the problems I spoke off in my previous posts. I now use Outlook Express as the default email prog and no warnings pop up :):):):) Yiihaaa!!!! The only problem I still...
7
by: Jay Douglas | last post by:
Hello all, I have a asp.net page that creates a pdf on the fly and sends the pdf down to the browser. When calling the page up in IE the Page_Load event is fried twice. This doesn't happen with...
1
by: news | last post by:
At the end of a PHP script, I'm sending a file via FTP to a server. I thought it'd be best to use a shell script in order to automate the FTP (logging in, changing to binary, putting the file,...
3
by: raj200809 | last post by:
when i m sending mail i received error from symantec Antivirus" Your email message was unable to be sent because your mail server rejected the message 550-5.7.1 the ip you’re using to send mail is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.