Sign in to follow this  
Followers 0
belitre

NTVDM CPU illegal instruction. 16 bit MS-DOS Subsystem MsgBox

8 posts in this topic

#1 ·  Posted (edited)

Hi, people:

I've been looking across the forum for this error. I've found two people with the same problem:

http://www.autoitscript.com/forum/index.ph...topic=17582&hl=

http://www.autoitscript.com/forum/index.ph...wtopic=7825&hl=

buy I haven't found the solution.

I'm Working with WXP. I get an error executing Run:

$details = FileGetShortcut("C:\Documents and Settings\All Users\Escritorio\Avantius.lnk")
Run($details[0] & " " & $details[2])

where:

$details[0] = C:\WINDOWS\Installer\{C0BFDF64-04BE-409B-A03C-7B628C2E4A91}\_18be6784.exe

$details[2] = /Server http://centapp09b/RemotAvantius_3_5_1_1

I've also tried:

Run('"' & $details[0] & '" ' & $details[2], $details[1], @SW_MAXIMIZE)

And now the error:

C:\WINDOWS\INSTAL~1\{C0BFD~1\_18BE6~1.EXE

16 bit MS-DOS Subsystem MsgBox (Close/Ignore)

The NTVDM CPU has encountered an illegal instruction.

CS:06fd IP:0176 OP:ff ff 00 00 ff Choose 'Close' to Terminate

Thanks for the attention. Regards.

Edited by belitre

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Well, you've got $details = FileGetShortcut("C:\Documents and Settings\All Users\Escritorio\Avantius.lnk") and then you call it as if it were an array like $details[0]....

If you ran it like

Run($details)??

or

Run(@ComSpec & " /c " & $details, "", @SW_HIDE)??

2nd example: [0] generally contains the number of elements in the array

Dim $details[3]

$details[1] = C:\WINDOWS\Installer\{C0BFDF64-04BE-409B-A03C-7B628C2E4A91}\_18be6784.exe

$details[2] = /Server http://centapp09b/RemotAvantius_3_5_1_1

Your parameters in Run() are wrong also: Run(stuff, "", @SW_MAXIMIZE)

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Well, you've got $details = FileGetShortcut("C:\Documents and Settings\All Users\Escritorio\Avantius.lnk") and then you call it as if it were an array like $details[0]....

If you ran it like

Run($details)??

or

Run(@ComSpec & " /c " & $details, "", @SW_HIDE)??

2nd example: [0] generally contains the number of elements in the array

Dim $details[3]

$details[1] = C:\WINDOWS\Installer\{C0BFDF64-04BE-409B-A03C-7B628C2E4A91}\_18be6784.exe

$details[2] = /Server http://centapp09b/RemotAvantius_3_5_1_1

Your parameters in Run() are wrong also: Run(stuff, "", @SW_MAXIMIZE)

Obviusly $details is declared before:

Dim $details[7]

According with AutoIt help, $details content is the following:

FileGetShortcut ( "lnk" )

The array returned from this function is a single dimension array containing the following elements:

$array[0] = Shortcut target path

$array[1] = Working directory

$array[2] = Arguments

$array[3] = Description

$array[4] = Icon filename

$array[5] = Icon index

$array[6] = The shortcut state (@SW_SHOWNORMAL, @SW_SHOWMINNOACTIVE, @SW_SHOWMAXIMIZED)

I think my run call is correct. Again AutoIt Help:

Run ( "filename" [, "workingdir" [, flag]] )

I think my problem is a bit more difficult. Thanks anyway.

Regards.

Share this post


Link to post
Share on other sites

Has someone tried to call function run with parameters in Windows XP?

Perhaps this problem is related with some OS issue.

Share this post


Link to post
Share on other sites

Obviusly $details is declared before:

Dim $details[7]

According with AutoIt help, $details content is the following:

FileGetShortcut ( "lnk" )

The array returned from this function is a single dimension array containing the following elements:

$array[0] = Shortcut target path

$array[1] = Working directory

$array[2] = Arguments

$array[3] = Description

$array[4] = Icon filename

$array[5] = Icon index

$array[6] = The shortcut state (@SW_SHOWNORMAL, @SW_SHOWMINNOACTIVE, @SW_SHOWMAXIMIZED)

I think my run call is correct. Again AutoIt Help:

Run ( "filename" [, "workingdir" [, flag]] )

I think my problem is a bit more difficult. Thanks anyway.

Regards.

You were missing the , 'working directory' yesterday... funny how 24 hours and an edit later they aren't wrong anymore. And your right, your problem is difficult, because you don't provide enough information. And there was nothing 'Obvious' about anything you posted... I was merely offering suggestions.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Hi, people:

I've been looking across the forum for this error. I've found two people with the same problem:

http://www.autoitscript.com/forum/index.ph...topic=17582&hl=

http://www.autoitscript.com/forum/index.ph...wtopic=7825&hl=

buy I haven't found the solution.

I'm Working with WXP. I get an error executing Run:

$details = FileGetShortcut("C:\Documents and Settings\All Users\Escritorio\Avantius.lnk")
Run($details[0] & " " & $details[2])

where:

$details[0] = C:\WINDOWS\Installer\{C0BFDF64-04BE-409B-A03C-7B628C2E4A91}\_18be6784.exe

$details[2] = /Server http://centapp09b/RemotAvantius_3_5_1_1

I've also tried:

Run('"' & $details[0] & '" ' & $details[2], $details[1], @SW_MAXIMIZE)

And now the error:

C:\WINDOWS\INSTAL~1\{C0BFD~1\_18BE6~1.EXE

16 bit MS-DOS Subsystem MsgBox (Close/Ignore)

The NTVDM CPU has encountered an illegal instruction.

CS:06fd IP:0176 OP:ff ff 00 00 ff Choose 'Close' to Terminate

Thanks for the attention. Regards.

I've seen errors like this frequently. Unfortunately, there's no easy cure, but at least there is help!

Search the MSKB for the error message:

This will return 10 links. A few are the same resolution to the problem, but check them all out. It's very likely that one of them may fix the problem.

Share this post


Link to post
Share on other sites

You were missing the , 'working directory' yesterday... funny how 24 hours and an edit later they aren't wrong anymore. And your right, your problem is difficult, because you don't provide enough information. And there was nothing 'Obvious' about anything you posted... I was merely offering suggestions.

SmOKe_N, I can't understand what you mean about "an edit later". The only thing I've changed of my original message consists in adding an interrogant Post icon.

Please tell me which information I should add to make clear the problem. Perhaps I should have mention that I've tried to execute the same program directly on cmd.exe, getting the same error. Anyway the ShortCut runs correctly.

JerryD, thanks for your contribution. Unfortunately I still haven't found the solution.

There is no problem with the application (it executes correctly when double clicking on shortcut).

NTVDM enviroment seems to be correct also.

But there is a problem when trying to automate.

I've read it could be a malware or virus problem. I'm going to check it, (without any hope...)

Thanks both again. I know we'll solve it.

Share this post


Link to post
Share on other sites

Is there another way to execute a shortcut?

Perhaps any of these ideas is affordable:

If the shortcut had a HotKey, I could execute it via keyboard. But then I need to add a Hot Key to the shortcut programmatically. And the only information I have is the name of the file: filename.lnk.

Is it posible to detect the shortcut in the desktop? I've tried window info but I can't get anything useful.

Thanks in advance.

Regards.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0