Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. handle script error on virtual machine

handle script error on virtual machine

Scheduled Pinned Locked Moved C#
perltoolsjsonhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    belea17
    wrote on last edited by
    #1

    I want to get exception when I am running a script on virtual machine. I use VIX API and RunScriptInGuest... because I need wscript.exe and if I have an error on myScript.vbs I can't handle the error because I am not receving any error because wscript.exe runs correctly. vm.RunScriptInGuest("c:\perl\wscript.exe", script_path, 0, Nothing, Nothing) Thank you very much

    L 2 Replies Last reply
    0
    • B belea17

      I want to get exception when I am running a script on virtual machine. I use VIX API and RunScriptInGuest... because I need wscript.exe and if I have an error on myScript.vbs I can't handle the error because I am not receving any error because wscript.exe runs correctly. vm.RunScriptInGuest("c:\perl\wscript.exe", script_path, 0, Nothing, Nothing) Thank you very much

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Does this have something to do with C#?

      One of these days I'm going to think of a really clever signature.

      B 1 Reply Last reply
      0
      • L Lost User

        Does this have something to do with C#?

        One of these days I'm going to think of a really clever signature.

        B Offline
        B Offline
        belea17
        wrote on last edited by
        #3

        Of corse! Because my code is in c# and I am using c# libraries

        1 Reply Last reply
        0
        • B belea17

          I want to get exception when I am running a script on virtual machine. I use VIX API and RunScriptInGuest... because I need wscript.exe and if I have an error on myScript.vbs I can't handle the error because I am not receving any error because wscript.exe runs correctly. vm.RunScriptInGuest("c:\perl\wscript.exe", script_path, 0, Nothing, Nothing) Thank you very much

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          belea17 wrote:

          I want to get exception when I am running a script on virtual machine. I use VIX API and RunScriptInGuest...
          because I need wscript.exe and if I have an error on myScript.vbs I can't handle the error because I am not receving any error because wscript.exe runs correctly.
           
          vm.RunScriptInGuest("c:\perl\wscript.exe", script_path, 0, Nothing, Nothing)

          You want to get an exception "where"? From "what"? Why? Trying to see if you're in a VM?

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups