Yes, this is because my original code should look like this instead:
Loop Start
//Some logic here. Removed for brevity
Dim p As New ProcessStartInfo
dim myProcess as Process = Nothing
p.FileName = _NAME
p.Arguments = _ARGS...
That's what I've been reading and when I try doing p.WaitForExit I get the message: 'WaitForExit' is not a member of 'System.Diagnostics.ProcessStartInfo'.
First, a bit of pseudo-ish code:
Loop Start
//Some logic here. Removed for brevity
Dim p As New ProcessStartInfo
p.FileName = _NAME
p.Arguments = _ARGS
p.WindowStyle = ProcessWindowStyle.Hidden
Process.Start(p)...
Right now it's set to requireAdminister. This way it prompts when started which at least works as a band-aid fix for now.
When run with asInvoker, this is what I get:
************** Exception Text **************
System.Net.WebException: The operation has timed out
at...
I'm saving to the temp directory with System.IO.Path.GetTempPath
The temp directory should be open to non-admins, right? If so, then why does the program fail to download unless I run it with admin privileges?
I've got a working program written up that downloads a file from a site and unzips it to a specific location. Everything works fine when I test the program, but once I compile it and try to run it I get timeout errors at the My.Computer.Network.DownloadFile line. The site I'm downloading from...
DotNetZip: DotNetZip Library
I've been using VB for quite a number of years, but I've only ever used it for creating personal programs to help me with various tasks. I've never gotten very in-depth with it and anybody would call most of the things I write very "elementary."
I want to use...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.