Click here to Skip to main content
15,897,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Printing the whole content of a child form, not just the visible part Pin
ChandraRam25-Jul-06 19:22
ChandraRam25-Jul-06 19:22 
AnswerRe: Adding LOTS of data to a database table Pin
Paul Conrad20-Jul-06 13:34
professionalPaul Conrad20-Jul-06 13:34 
GeneralRe: Adding LOTS of data to a database table Pin
incognito7920-Jul-06 23:36
incognito7920-Jul-06 23:36 
QuestionAccessing emails from exchange server Pin
ggpptt20-Jul-06 8:39
ggpptt20-Jul-06 8:39 
Questionerror programmatically accessing mapped drive Pin
mzak042020-Jul-06 8:18
mzak042020-Jul-06 8:18 
AnswerRe: error programmatically accessing mapped drive Pin
The ANZAC20-Jul-06 11:46
The ANZAC20-Jul-06 11:46 
GeneralRe: error programmatically accessing mapped drive [modified] Pin
Dave Sexton20-Jul-06 20:08
Dave Sexton20-Jul-06 20:08 
AnswerRe: error programmatically accessing mapped drive Pin
mzak042027-Jul-06 6:50
mzak042027-Jul-06 6:50 
Thank you for your suggestion and I appreciate it, however it did not work.

After some experimentation, I was able to get it to work.Big Grin | :-D I am posting my solution in the event that it will help someone else. There were two things I was doing wrong:

1. I did not provide a redirect for the input. Seems you need to redirect error, input, and output even if you are not using the data.

2. I was using WaitForExit in the wrong context.

Here is the code that works:

info.StartInfo.FileName = ("net.exe")
info.StartInfo.UseShellExecute = False
info.StartInfo.RedirectStandardInput = True
info.StartInfo.RedirectStandardError = True
info.StartInfo.RedirectStandardOutput = True
info.StartInfo.CreateNoWindow = True
info.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
info.StartInfo.Arguments = "use z: \\server\share " & My.Settings.rbsSrvPwd & " /user:" & My.Settings.rbsSrvUsr

Process.Start(info.StartInfo)

If anyone sees any flaws please let me know.





mzak0420
QuestionSlow loading of bitmap to ImageList Pin
ccliam20-Jul-06 7:56
ccliam20-Jul-06 7:56 
AnswerRe: Slow loading of bitmap to ImageList [modified] Pin
ccliam21-Jul-06 3:40
ccliam21-Jul-06 3:40 
QuestionCopying a listbox item to clipboard Pin
Serpent66620-Jul-06 7:09
Serpent66620-Jul-06 7:09 
AnswerRe: Copying a listbox item to clipboard Pin
Rizwan Bashir21-Jul-06 5:36
Rizwan Bashir21-Jul-06 5:36 
QuestionFaxing Pin
Polymorpher20-Jul-06 5:38
Polymorpher20-Jul-06 5:38 
AnswerRe: Faxing Pin
Tim Carmichael20-Jul-06 7:01
Tim Carmichael20-Jul-06 7:01 
GeneralRe: Faxing Pin
Polymorpher20-Jul-06 10:25
Polymorpher20-Jul-06 10:25 
QuestionHow I know about Languages Install in XP OS. Pin
Shahzad Munir20-Jul-06 2:07
Shahzad Munir20-Jul-06 2:07 
QuestionExtra Title Bar Button Pin
The ANZAC19-Jul-06 23:37
The ANZAC19-Jul-06 23:37 
Questionhow to compare date in vb??? Pin
campbells19-Jul-06 23:34
campbells19-Jul-06 23:34 
AnswerRe: how to compare date in vb??? Pin
steff kamush19-Jul-06 23:47
steff kamush19-Jul-06 23:47 
Questionvb6 Treeview - how to make a node readonly Pin
steff kamush19-Jul-06 23:28
steff kamush19-Jul-06 23:28 
Questionhow to open .DBF file in vb?? Pin
campbells19-Jul-06 22:45
campbells19-Jul-06 22:45 
AnswerRe: how to open .DBF file in vb?? Pin
Andy Davies20-Jul-06 22:56
Andy Davies20-Jul-06 22:56 
QuestionSendEmail Pin
Socheat.Net19-Jul-06 22:19
Socheat.Net19-Jul-06 22:19 
AnswerRe: SendEmail Pin
The ANZAC19-Jul-06 22:21
The ANZAC19-Jul-06 22:21 
GeneralRe: SendEmail Pin
Socheat.Net19-Jul-06 22:41
Socheat.Net19-Jul-06 22:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.