Scripting

I have made a new button to creates a new textdoc.
Now this txt doc will be saved in “D:\download\”, but i would like it to have it saved in the current directory.
The directory where i stand at that moment. I just don’t know how to script that.
Could you please help me to do that.

This is the script text:
"C:\Program Files (x86)\Notepad++\Notepad++.exe" "D:\download\New.txt"
D:\download

Thank you

"C:\Program Files (x86)\Notepad++\Notepad++.exe" "{sourcepath}New.txt"

See here... http://www.gpsoft.com.au/help/opus10/default.htm#!Documents/Codes_for_passing_paths.htm

Naki's method is good, so if you're happy with that then it's all you need.

If you need something slightly different, or just want to see alternatives, here's a discussion of various different ways to create and/or edit new files: How to Create New/Empty Files