Jump to content

Strange Syntax Error


Go to solution Solved by Yashied,

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

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

  • Solution

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

 

Error:

 

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

ShellExecute(@DesktopDir 'test.txt'

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

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

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...