Jump to content
TheDcoder

Strange Syntax Error

Recommended Posts

Hello, Try running this code:

ShellExecute(@DesktopDir '/test.txt', Default, Default, "open")

I got the following error:

 

"C:UsersTheDcoderDesktopNew AutoIt v3 Script.au3"(8,37) : error: syntax error
ShellExecute(@DesktopDir '/test.txt'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

 

Why is this happening?

Thanks In Advance, TD :)


My contributions to the AutoIt Community - ##AutoIt at freenode, real-time chat

3fHNZJ.gif

Spoiler

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

Share this post


Link to post
Share on other sites

ShellExecute(@DesktopDir & '\test.txt', Default, Default, "open")

 

Error:

 

"C:UsersTheDcoderDesktopNew AutoIt v3 Script.au3"(8,37) : error: syntax error

ShellExecute(@DesktopDir 'test.txt'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~^


My contributions to the AutoIt Community - ##AutoIt at freenode, real-time chat

3fHNZJ.gif

Spoiler

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

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

×
×
  • Create New...