ScriptSpot

Forum topic · General Scripting

Directory Syntax Problem

By Ewok · 2012-03-28

Description

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 (1)

Ewok · 2012-03-28

Ah, I got it!

This is the right syntax:

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