473,385 Members | 1,474 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.

Running a program w args

I can use the windows "run" with the following command:

"C:\Program Files\SAS Institute\SAS\V8\sas.exe" -
sysin "c:\filetest\sas programs\spiroread.sas" -sysparm
c:\filetest\0254140.csv

where sas.exe is the application, the -sysin argument is
the SAS program to run, and the -sysparm argument is the
data it needs.

It runs great from the command line, but I've tried
following a few people's advice (to include that of the
SAS Institute) on how to get VB to run this, and I can't
seem to make it work.

Any ideas on what I need to do?
Thanks


Nov 20 '05 #1
2 1261
Hi Ken,

Process.Start gets a process/application running.

The FilePath argument has a space so needs quotes around it. Inside a
string these must be doubled up.

Process.Start ("C:\Program Files\SAS Institute\SAS\V8\sas.exe", _
"- sysin ""c:\filetest\sas programs\spiroread.sas"" -sysparm
c:\filetest\0254140.csv")

Regards,
Fergus
Nov 20 '05 #2
* "Ken Barz" <an*******@discussions.microsoft.com> scripsit:
I can use the windows "run" with the following command:

"C:\Program Files\SAS Institute\SAS\V8\sas.exe" -
sysin "c:\filetest\sas programs\spiroread.sas" -sysparm
c:\filetest\0254140.csv

where sas.exe is the application, the -sysin argument is
the SAS program to run, and the -sysparm argument is the
data it needs.

It runs great from the command line, but I've tried
following a few people's advice (to include that of the
SAS Institute) on how to get VB to run this, and I can't
seem to make it work.


Have a look at the overloaded versions of
'System.Diagnostics.Process.Start' and the 'ProcessStartInfo' class.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Colin Brown | last post by:
As I am getting a larger collection of python program packages the idea of saving them as zips is becoming increasingly attractive. The latest idea is to launch them from a generic wrapper listed...
5
by: Shalen chhabra | last post by:
Hey, Can anyone give me a snippet for running a python program over all the files in the directory. For ex: I have ten files in a directory and I want to run a python program against all of...
0
by: Jay Allard | last post by:
Hello I posted this in the vb.net group on the 2/25/2004, but didn't get any response. Here's attempt 2. Does anyone know of a more appropriate place to post this? One new piece of...
8
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
1
by: Peter Rilling | last post by:
I have an EXE that I would like to be able to run from either the command-line or as a windows service. Is there a way that I can tell which context the program is running in? Basically, if it...
9
by: santosh | last post by:
Hello all, I've put together a small program to count the number of characters and 'words' in a text file. The minimum length of a word, (in terms of no. of characters), as well as word...
2
by: Heikki Toivonen | last post by:
We have successfully used a script to run external programs for several years. Now we upgraded our Python to 2.5, and are hitting a mysterious error. The expected output from the sample script...
2
by: jetoo | last post by:
Hi there, i'm trying to run a powershell script from a aspx page. Here's the code: //Powershell arguments String powershell = "C:\\WINDOWS\\system32\...
1
by: andrewkl | last post by:
hi, I wrote a C program (runas.c) that runs a command as a different user on Solaris 8. The problem I'm having is that the new user's group memberships aren't going into effect. Take the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.