Directory Syntax Problem

I would like to launch a .txt file with a notepad via a script.

There must be a little syntaxe problem in my file path, but I can't figure it out:

logfile="my_log.txt"
openLog logfile outputOnly:true
"hello"
closeLog logfile
sysInfo.currentdir
shellLaunch "notepad.exe" sysInfo.currentdir + "\my_log.txt"

Does anyone know what's wrong?

Ewok

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ewok's picture

Ah, I got it! This is the

Ah, I got it!

This is the right syntax:

shellLaunch "notepad.exe" (sysInfo.currentdir + "\\my_log.txt")

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.