Jump to content

program with @comspec


DJI
 Share

Recommended Posts

Hello,

ok so

I have programA.au3

and in that program i have

$Command = "bnet.au3"

Run (@ComSpec & " /c " & @ScriptDir & "\" & $Command, @TempDir)

Now bnet.au3 launches but the .avi video in bnet.au3 doesnt display.

However, if i run bnet.au3 myself(by clicking it), the .avi image does display...

And i think it might be cause of @ComSpec or something... because the avi doesnt display only when its launched by programA.au3

Link to comment
Share on other sites

Hello,

ok so

I have programA.au3

and in that program i have

$Command = "bnet.au3"

Run (@ComSpec & " /c " & @ScriptDir & "\" & $Command, @TempDir)

Now bnet.au3 launches but the .avi video in bnet.au3 doesnt display.

However, if i run bnet.au3 myself(by clicking it), the .avi image does display...

And i think it might be cause of @ComSpec or something... because the avi doesnt display only when its launched by programA.au3

it's because .au3 isn't an executable extension to be run the way you're running it. compile it and you should be ok. OR.... one sec going to test something...(may have a fix for you...)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...