Hi,
I want to display a particular windows in all the windows opened on my computer (windows XP) which appears in my task bar.
Or , how can i get the list of windows opened ?
Thanks.
ok with this code:
.bat
@echo off
echo 'appel vbscript variable2 wihch returns 1 or 0'
cscript variable2.vbs > nil
IF "%ERRORLEVEL%" == "1" echo VBS returned %ERRORLEVEL%
echo %ERRORLEVEL%
vbscript
Wscript.Echo "Appel script"
Dim data
data=1
Wscript.Echo "data: " & data...
Thanks
I precise my problem
in my script I have a data which its value is 0 or 1 like this
Wscript.Echo "Appel script"
Dim data
data=1
Wscript.Echo "data: " & data
(it is a very simply example!)
and in my file .bat:
echo 'appel vbscript variable2 wihch returns 1 or 0'
cscript...
Hi,
I have a script in vb which returns 1 or 0 and this script is called in a dos file .bat.
Is it possible to get the value returned in my script.*
Thanks.
I just want to kill the process if necessary and to know if the process run.
I tried your code but it doesn't work :
'check number argument
result=RunAppUser2("EU\st09346","calc.exe","nounou")
WScript.Echo "*****"
'************************************************************
' function...
Hi,
Thanks for jours answer. but I have not always an solution to resolve my problem...
Is it possible to change user with vb and after to execute the command WshShell.Exec(.... so that the processus will be run with this user ?
Frederic.
Hi,
I want to get pid process running with the RunAs command:
RunAppUser=WshShell.Run("runas /user:" & user & " " & CHR(34) & applicationName & CHR(34), 2, FALSE)
I can with the exec command:
Set oExec = WshShell.Exec(applicationName)
Wscript.Echo "PID de l'aapli lancée: " & oExec.ProcessID...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.