Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. RoMa68

    simply starting an application via vbscript

    ...not yet - I already reached this point. i added a set and a pause command into this batch just to show me the environment parameters (ok) - so the call should work, but I get this: >>>> Drücken Sie eine beliebige Taste . . . Unzulässiger Parameter - baud=9600 Der Befehl ".." ist entweder...
  2. RoMa68

    simply starting an application via vbscript

    Hi dm4ever, option /c (WshShell.Run "%comspec% /c ) changes something with this cmdbox so that further commands in this startapp.bat cannot be interpreted. Removing this /c only a cmdbox is opened!? MR
  3. RoMa68

    simply starting an application via vbscript

    Hi all, typing this: <<c:\sols\runt2007_02_19\lim\startapp.bat PPLIQ300>> into the run-box in WinXP the application starts but how should this look like in scripting?? this does not work: Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run...
  4. RoMa68

    get actual line number

    I'm using UltraEdit (does anybody use notepad for developping?) so i now the line numbers on coding. On getting a real error I think this >>> If Err.Number <> 0 Then If Debug <> 0 Then MsgBox Err.Line & "263-Error # " & CStr(Err.Number) & " " & Err.Description End If...
  5. RoMa68

    get actual line number

    How can i get the actual line number within the running vbscript? At the moment for debugging i use a debug-switch an message-boxes: If Debug <> 0 Then MsgBox "227-Error reading XMLConfig" End If But on doing changes and adding lines i have to changes all following entries -...
  6. RoMa68

    check/change logon within windows terminal services via vbscript

    ... just to be give you more details: I want to know on which server logon is disabled. Redirect the output of the "change"-command (into a file) is not possible. :o(
  7. RoMa68

    check/change logon within windows terminal services via vbscript

    we have some citrix servers and I want to check if logon is possible. with "change logon /query" it is possible to change this in a "dos box" - but it is not possible to get this information as a return parameter. has somebody done this via scripting? does anybody know the wmi-key to get this...
  8. RoMa68

    Remote access to file attributes

    Hi guys, somewhere in the web I found this one: --------------------------------------- Function GetFileSize(strSrv,strFile,UserName,Password) On Error Resume Next strFile=Replace(strFile,"\","\\") 'filepath must use \\ instead of \ Set SWBemlocator =...
  9. RoMa68

    Remote access to file attributes

    Hi, this part... --------------- Set objSWbemServices3 = objSWbemLocator.ConnectServer(strServer3, "root\cimv2", strUser3, strPword3, "MS_409", "ntlmdomain:" + strDomain3) Set colSwbemObjectSet3 = objSWbemServices3.ExecQuery("Select * From Win32_Process",,48) --------------- ...is working well...
  10. RoMa68

    Remote access to file attributes

    The result of this query will be an array/group? So I have to get this 'single' dataset with a: For Each X in Y ... Next
  11. RoMa68

    Remote access to file attributes

    ...ok - but I changed it to: "C:\PMX\_log\_STACKERGW\PDLog-admin_mes.log" I even tried "C:boot.ini" which is a windows-file but with the same result :o(
  12. RoMa68

    Remote access to file attributes

    @mrmovie: what do you mean? the path is correct... @tsuji: thanks but same error?!
  13. RoMa68

    Remote access to file attributes

    ...seems to - but it does not work! Error '0x80041017', Source (null)? I don't know - where the problem is. Set objSWbemServices3 = objSWbemLocator.ConnectServer(strServer3, "root\cimv2", strUser3, strPword3, "MS_409", "ntlmdomain:" + strDomain3) Set colSwbemObjectSet3 =...
  14. RoMa68

    Remote access to file attributes

    Running the following script I get the error : "file not found"! the placehoulders contain: strServer3: "RM2MS000651" StackerLog: "\C$\PMX\_log\_STACKERGW\PDLog-admin_mes.log" the login within ConnectServer is local admin! If I map a network connection to this server, everything works fine...
  15. RoMa68

    check active application

    Hi all, object.AppActivate title activates the named application ...but is it possible the find out what the active application is? What I need is: I have a script which check wether IE is running and then sends {F5} (refresh) to the IE - but the "object.AppActivate" removes the focus from...
  16. RoMa68

    close application whose process is just a command window

    Hi all, @Jerz: technically this would be possible - but all machines are qualified and this would be a change within the operating system which is not allowed. @jessicatechy: this works but I don't want to close alle cmd-processes, I need to check if a special process is running (sorry the...
  17. RoMa68

    close application whose process is just a command window

    ...after reading many posts i think the problem is that Win2000 does not support the same informtation as WinXP :o) I think VBscript cannot give me the needed information - but maybe you guys habe another idea! Thanks MR
  18. RoMa68

    close application whose process is just a command window

    look the result: Proc >>PID >>ExecutablePath >>Caption ... CMD.EXE>>2420>>C:\WINNT\system32\cmd.exe>>CMD.EXE CMD.EXE>>2504>>C:\WINNT\system32\cmd.exe>>CMD.EXE CMD.EXE>>1720>>C:\WINNT\system32\cmd.exe>>CMD.EXE CMD.EXE>>2904>>C:\WINNT\system32\cmd.exe>>CMD.EXE ...
  19. RoMa68

    close application whose process is just a command window

    ...the CommandLine property is not supported :o(!
  20. RoMa68

    close application whose process is just a command window

    ..seems nobody knows an answer? How do you check if an application is running on a remote machine? This application is a service running in a command window. I can see that four 'cmd.exe' are running on this remote machine, but which one belongs to the application I need to keep running? Or -...

Part and Inventory Search

Back
Top