vbscript - WShell.Run returns 143 -


i calling java code vb script using wshell.run. returns code 143. mean? can list of error codes run method can return?

here reference system error codes.

error_same_drive 143 (0x8f) system cannot join or substitute drive or directory on same drive.

p.s. think next notes out of question, in case...

just note err object has "dummy" description (unknown runtime error) codes. if filtered list sensible descriptions, can this:

with createobject("internetexplorer.application")     const dummy = "unknown runtime error"     redim arylines(15999)     dim cnt, i, w, h     cnt = -1      .navigate "about:blank"     .document.title = "error codes " & string(100, chr(1))     .toolbar        = false     .resizable      = true     .statusbar      = false     .width          = 420     .height         = 380      .document.parentwindow.screen         w = .availwidth         h = .availheight     end     .left = (w - .width ) \ 2     .top  = (h - .height) \ 2      while .busy : wscript.sleep 200 : loop      on error resume next     err         = 1 15999             .raise             if .description <> dummy                 cnt = cnt + 1                 arylines(cnt) = addzero(i) & .description             end if             .clear         next     end     on error goto 0      redim preserve arylines(cnt)     .document.body.innerhtml = "<pre id=x>" & join(arylines, vbnewline)     .document.body.style.overflow = "auto"     .document.all.x.style.fontfamily = "verdana, sans-serif"     .visible = true end  function addzero(nvar)     addzero = "<b>" & right("00000" & nvar, 5) & "</b> " end function 

screen capture result


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -