I'm just starting to learn VB.Net (winforms) - having known classic vb for
years...

I was trying to build a 'dll compiler' just for grins, using the vbc.exe
that resides in the DotNet Directory.

I have a form that browses to that directory, and builds a string from it,
adding "vbc.exe", along with the proper arguments, like this:
vbcApp = txtDotNetDir.Text & "\vbc.exe"

Process.Start(vbcApp & " /out:" & sFinal & " /t:library " & txtCBDir.Text)

sFinal merely builds a string with a path and the name of the new dll to
save - -

It always stops on this line and says :

An unhandled exception of type 'System.ComponentModel.Win32Exception'
occurred in system.dll
Additional information: The system cannot find the file specified

I've double checked and each of the variables in the equation have valid
paths/filenames and if I used it all manually at the command prompt, it
would work just fine

What am I doing wrong here?

Re: Process.Start problems by Lebrun

Lebrun
Thu Aug 05 12:27:10 CDT 2004

Try this :

Process.Start(vbcApp , " /out:" & sFinal & " /t:library " & txtCBDir.Text)

Bye.

--
LEBRUN Thomas
http://morpheus.developpez.com


"Elmo Watson" <sputnik75043@nospamYahoo.com> wrote in message
news:u3JkvlweEHA.2044@TK2MSFTNGP10.phx.gbl...
> I'm just starting to learn VB.Net (winforms) - having known classic vb for
> years...
>
> I was trying to build a 'dll compiler' just for grins, using the vbc.exe
> that resides in the DotNet Directory.
>
> I have a form that browses to that directory, and builds a string from it,
> adding "vbc.exe", along with the proper arguments, like this:
> vbcApp = txtDotNetDir.Text & "\vbc.exe"
>
> Process.Start(vbcApp & " /out:" & sFinal & " /t:library " & txtCBDir.Text)
>
> sFinal merely builds a string with a path and the name of the new dll to
> save - -
>
> It always stops on this line and says :
>
> An unhandled exception of type 'System.ComponentModel.Win32Exception'
> occurred in system.dll
> Additional information: The system cannot find the file specified
>
> I've double checked and each of the variables in the equation have valid
> paths/filenames and if I used it all manually at the command prompt, it
> would work just fine
>
> What am I doing wrong here?
>
>
>
>
>
>



Re: Process.Start problems by Elmo

Elmo
Thu Aug 05 12:51:10 CDT 2004

Thanks - - the comma - - that was the problem - -

"Lebrun Thomas" <lebrun.thomas@wanadoo.fr> wrote in message
news:ebzD5FxeEHA.3016@tk2msftngp13.phx.gbl...
> Try this :
>
> Process.Start(vbcApp , " /out:" & sFinal & " /t:library " & txtCBDir.Text)
>
> Bye.
>
> --
> LEBRUN Thomas
> http://morpheus.developpez.com
>
>
> "Elmo Watson" <sputnik75043@nospamYahoo.com> wrote in message
> news:u3JkvlweEHA.2044@TK2MSFTNGP10.phx.gbl...
> > I'm just starting to learn VB.Net (winforms) - having known classic vb
for
> > years...
> >
> > I was trying to build a 'dll compiler' just for grins, using the vbc.exe
> > that resides in the DotNet Directory.
> >
> > I have a form that browses to that directory, and builds a string from
it,
> > adding "vbc.exe", along with the proper arguments, like this:
> > vbcApp = txtDotNetDir.Text & "\vbc.exe"
> >
> > Process.Start(vbcApp & " /out:" & sFinal & " /t:library " &
txtCBDir.Text)
> >
> > sFinal merely builds a string with a path and the name of the new dll to
> > save - -
> >
> > It always stops on this line and says :
> >
> > An unhandled exception of type 'System.ComponentModel.Win32Exception'
> > occurred in system.dll
> > Additional information: The system cannot find the file specified
> >
> > I've double checked and each of the variables in the equation have valid
> > paths/filenames and if I used it all manually at the command prompt, it
> > would work just fine
> >
> > What am I doing wrong here?
> >
> >
> >
> >
> >
> >
>
>