/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
start en bat fil mde shell ?
Fra : Carsten Davidsen


Dato : 16-01-01 14:18

Hej NG


Kan man starte en bat fil med komandoen shell
eks. shell p:\hurra.bat.

Jeg har prøvet, men det virker ikke.


MVH
Carsten Davidsen




 
 
Niels Krogh (16-01-2001)
Kommentar
Fra : Niels Krogh


Dato : 16-01-01 14:43

Hej Carsten,

Jeg tror du mangler en parameteren vbHide så din linie bliver

Shell "p:\hurra.bat", vbHide

Standard parameteren er vbMinimizedFocus hvor batchfilen først kører når du
klikker på vinduet.

mvh
Niels
"Carsten Davidsen" <Div@post.cybercity.dk> skrev i en meddelelse
news:941hmo$q0g$1@news.inet.tele.dk...
> Hej NG
>
>
> Kan man starte en bat fil med komandoen shell
> eks. shell p:\hurra.bat.
>
> Jeg har prøvet, men det virker ikke.
>
>
> MVH
> Carsten Davidsen
>
>
>



Helge Bjørkhaug (17-01-2001)
Kommentar
Fra : Helge Bjørkhaug


Dato : 17-01-01 12:46

"Niels Krogh" <nikro@REMOVEbigfoot.com> skrev i melding news:941iup$k5$1@news.inet.tele.dk...
> Hej Carsten,
>
> Jeg tror du mangler en parameteren vbHide så din linie bliver
>
> Shell "p:\hurra.bat", vbHide
>
> Standard parameteren er vbMinimizedFocus hvor batchfilen først kører når du
> klikker på vinduet.
>
> mvh
> Niels
> "Carsten Davidsen" <Div@post.cybercity.dk> skrev i en meddelelse
> news:941hmo$q0g$1@news.inet.tele.dk...
> > Hej NG
> >
> >
> > Kan man starte en bat fil med komandoen shell
> > eks. shell p:\hurra.bat.
> >
> > Jeg har prøvet, men det virker ikke.
> >

Fra VB-help....
This example uses the Shell function to run an application specified by the user.
' Specifying 1 as the second argument opens the application in
' normal size and gives it the focus.
Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.

The windowstyle named argument has these values:

Constant Value Description
vbHide 0 Window is hidden and focus is passed to the hidden window.
vbNormalFocus 1 Window has focus and is restored to its original size and position.
vbMinimizedFocus 2 Window is displayed as an icon with focus.
vbMaximizedFocus 3 Window is maximized with focus.
vbNormalNoFocus 4 Window is restored to its most recent size and position. The currently active window remains active.
vbMinimizedNoFocus 6 Window is displayed as an icon. The currently active window remains active.

Mvh,

Helge



Søg
Reklame
Statistik
Spørgsmål : 177513
Tips : 31968
Nyheder : 719565
Indlæg : 6408601
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste