|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I'm trying to automate a weekly update for users. Right now a batch file is run on startup to pull the file from a network drive. That presents a problem for some of our older machines as it is a large file and slows startup down on them.
So... I want to add a button to the current application that will run the batch file-- preferably, the shell window won't be seen. How can I do that in VB.net? Last edited by Schway442 : August 13th, 2003 at 07:57 AM. |
|
#2
|
|||
|
|||
|
try this
Private Sub Command1_Click() Shell "C:\WINNT\notepad.exe",vbMaximizedFocus End Sub i used it to display notepad. u would need the path of the .bat. Also instead of vbMaximizedFocus use vbHide constant. |
|
#3
|
|||
|
|||
|
im sorry this was for vb 6...cant help with .net,
might have to instantiate a shell class or watever ![]() |
|
#4
|
|||
|
|||
|
If only I knew how to do that.
Last edited by Schway442 : August 19th, 2003 at 08:19 AM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Run batch file on button click |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|