v basic Frage schnell pls :) - Seite 2

Seite 2 von 2 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/v_basic_frage_schnell_pls_63760/page_2 - zur Vollversion wechseln!


CROWLER schrieb am 21.01.2003 um 19:58

Zitat von rettich
bei "ping -t" pingt er endlos. des hat aber nix mehr mit VB zu tun.

naja ich meinte eher wo muss ich -t einsetzen ???

Zitat
Private Sub Command1_Click()

Dim ret As Double
Dim ip As String

ip = textbox3.Text
ret = Shell("ping " & ip, vbNormalFocus)
End Sub


watchout schrieb am 21.01.2003 um 20:24

Zitat von CROWLER
naja ich meinte eher wo muss ich -t einsetzen ???
die frage is, wie du plötzlich auf "net send" statt "ping" kommst...


CROWLER schrieb am 21.01.2003 um 20:29

hatte den falschen button kopiert :)


watchout schrieb am 21.01.2003 um 20:33

na, dann mach mal ne dosbox auf und gib "ping /?" ein... :rolleyes:


CROWLER schrieb am 23.01.2003 um 18:46

:bash:


irgendwie versteht mich kana

:)

wo muss ich

HIER : (also in der folgenden zeile :))
ret = Shell("ping " & ip, vbNormalFocus)

-t einsetzen

denn wenn ich

ret = Shell("ping " & ip, -t, vbNormalFocus)

einsetze gehts ned


schrieb am 23.01.2003 um 18:47

ret = Shell("ping -t " & ip, -t, vbNormalFocus)

:bash:

edit:
sorry für den bash, aber deine frage zeigt, dass du dir net amal 2 minuten zeit genommen hast, die lösung zur problemstellung zu verstehen. :(


jayjay schrieb am 23.01.2003 um 18:50

ret=Shell("ping -t " & ip,vbnormalfocus)
;)
grrr...zulang überlegt, hab selbst erst in der Eingabeaufforderung nachschaun müssen, was du auch machen hättest können :rolleyes:
einfach bissi herumprobieren...


watchout schrieb am 23.01.2003 um 21:10

Zitat von rettich
ret = Shell("ping -t " & ip, -t, vbNormalFocus)
:confused:



@crowler: der shell command is (fast) wie eine eingabe in die dosbox -> das heiss die selbe syntax...

aus der vb-reference:

Zitat
Runs an executable program and returns an integer containing the program's process ID if it is still running.

Public Function Shell( _
ByVal Pathname As String, _
Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _
Optional ByVal Wait As Boolean = False, _
Optional ByVal Timeout As Integer = -1 _
) As Integer

Parameters:

Pathname
Required. String. Name of the program to execute, together with any required arguments and command-line switches. Pathname can also include the drive and the directory path or folder.


schrieb am 24.01.2003 um 09:36

Zitat von watchout
:confused:

argh, sorry, des kommt vom copy&pasten :bash: :o


CROWLER schrieb am 25.01.2003 um 19:39

Zitat von rettich
ret = Shell("ping -t " & ip, -t, vbNormalFocus)

:bash:

edit:
sorry für den bash, aber deine frage zeigt, dass du dir net amal 2 minuten zeit genommen hast, die lösung zur problemstellung zu verstehen. :(


hmmm

sry ... aber als ich es so einsetze bekam ich einen fehler
:confused: naja hauptsache jetzt weiss ich wies gehört :)

thx




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025