Jump to content
TheDcoder

Strange Syntax Error

Recommended Posts

TheDcoder

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 :)


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

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

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
Yashied
TheDcoder

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

 

Error:

 

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

ShellExecute(@DesktopDir 'test.txt'

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


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

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

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

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

×