shell help
shell help
shell help
shell help
shell help
shell help shell help shell help shell help shell help shell help shell help shell help
shell help shell help
shell help
Go Back  Xtreme Visual Basic Talk > > > shell help


Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2004, 04:10 PM
Old Nehampkin's Avatar
Old Nehampkin Old Nehampkin is offline
Freshman
 
Join Date: Jan 2004
Location: Texas
Posts: 44
Default shell help


I wrote a program(if I may call it that). It's purpose is to provide a user friendly interface for an old Texas Transportation Department structural analysis program. This program requests the name of an input text file on a dos-style command line prompt. currently, my program will open the .exe in a new window, but I must then type the name of the input file and press enter. It would be slicker if the program could manipulate the command line of the program behind the scenes. Please provide some insight
__________________
the Dude abides
Reply With Quote
  #2  
Old 01-07-2004, 07:17 PM
Iceplug's Avatar
Iceplugshell help Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

What do you mean by manipulating the command line behind the scenes?
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #3  
Old 01-07-2004, 09:19 PM
reboot's Avatar
rebootshell help reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,614
Default

Possibly you're looking for something like this?

Code:
Dim myProcess As New Process Dim s As String With myProcess .StartInfo.UseShellExecute = False 'required .StartInfo.CreateNoWindow = True 'you don't need to see the program running do you? .StartInfo.RedirectStandardInput = True 'redirect standard IO .StartInfo.RedirectStandardOutput = True .StartInfo.WorkingDirectory = "c:\your programs directory" .StartInfo.FileName = "yourprogram.exe" 'the program to execute .Start() 'run it s = .StandardOutput.ReadToEnd() 'get the output End With MessageBox.Show(s) 'output is in s, do whatever you want with it
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture output from shell or wait until shell is completed? redneon General 3 11-11-2009 01:44 PM
Shell Asynchronous Question OnTheAnvil General 3 11-08-2003 09:26 AM
shell command - process termination holdemfoldem General 2 08-29-2003 11:42 AM
MSChart title text font renders badly dataorb General 10 11-26-2002 04:50 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
shell help
shell help
shell help shell help
shell help
shell help
shell help shell help shell help shell help shell help shell help shell help
shell help
shell help
 
shell help
shell help
 
-->