Ask for the "Username" and "Password" in your VB program. You would shell your BAT file with the Username and Password as command arguments. In the BAT file run the DOS program and pipe the command arguments (%1 and %2) to the console to supply the signon. It's been way too long since I did a batch file so I have forgotten the syntax, just remember you can do it. If you can use HTTPS, you can do it all from within VB using the Inet OCX control in VB 6 Pro. If "to err is human", programmers must be superhuman...
VBGuruWantabe
Posts
-
VB6 - Open the DOS window -
how to control the network bandwidthAnother place to look is the "Quality of Service" layer in Windows. (Got the correct thread this time!) If "to err is human", programmers must be superhuman...
-
to database or not to databaseOOPS... Wrong thread! (See thread above) If "to err is human", programmers must be superhuman...
-
to database or not to databaseAnother place to look is the "Quality of Service" layer in Windows. If "to err is human", programmers must be superhuman...
-
Making some Text of RichTextBox ReadonlyIf this "read only" text is a header or footer, you can use a borderless label to hold the non-editable text. You will have to parse the RTF file to extract the text but you must be doing that if you are highlighting it. The remaining text will go to the RichTextBox. The RichTextBox will also be borderless and both will be in a "frame" to make them appear as one. If "to err is human", programmers must be superhuman...
-
VB Timer ControlDim i as Integer 'In your init routine Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e _ As System.EventArgs) Handles Timer1.Tick i += 1 'Increment for each minute - Interval set to 60,000 If i > 14 Then 'Do your file stuff here as 15 minutes have elapsed i=0 End If End Sub If "to err is human", programmers must be superhuman...
-
openfile dialog box in VB.NetLook at the "FileName" property of the "OpenFile" dialog. It will be set to the file path of the choosen file. The "Cancel" button will return a null string in "FileName". If "to err is human", programmers must be superhuman...