TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sasa lazic
NA
104
50.1k
Here's my problem I'd like to run dos command in C #. net. DOS command lazicsasalaki.exe Fajl1.ekt ...
Aug 24 2012 1:26 PM
Here's my
problem
I'd like
to run
dos
command
in C
#
.
net.
DOS
command
lazicsasalaki.exe
Fajl1.ekt
Fajl2.ekt
>
SAŠA.tkt
actually
I do not know
how
can I get
C #
to
use
DOS
command
>
and
the
records
in the file
SAŠA.tkt
Here's the code
string[] ovoHocuDaSojim = new string[25];
string[] ImenaFajlova = new string[25];
int brojacFajlova = 0;
OpenFileDialog ofDlg = new OpenFileDialog();
ofDlg.Multiselect = true;
if (ofDlg.ShowDialog() == DialogResult.OK)
{
foreach (string filename in ofDlg.FileNames)
{
MessageBox.Show(filename);
brojacFajlova = brojacFajlova + 1;// brojac izabranih fajlova
ovoHocuDaSojim[brojacFajlova] = filename;// imena fajlova sa putanjama
string strFileName1 = System.IO.Path.GetFileName(filename);// uzimam iz openfile dijalog prozora samo imena izabranih fajlova
ImenaFajlova[brojacFajlova] = strFileName1;// izabrana imena fajlova slazem u niz
}
}
string spojeno = " " + ImenaFajlova[1] + " " + ImenaFajlova[2] + " > SASA.TXT";
// string spojeno = " +qc+config+l Baji222S.12o";
var process = System.Diagnostics.Process.Start("lazicSasaLaki.exe",spojeno);
process.WaitForExit();
var result = process.ExitCode;
Reply
Answers (
2
)
passs parameters to C# 2008 app
sqldatabase error : procedure or function has too many parameters specified.