Create new file stopped working

Hello,

All of a sudden the following button stopped doing it's job,
it seems the text does not get created, and thus notepad tells me the file to open does not exist.

Can someone check please ?

<?xml version="1.0"?> <button backcol="none" display="both" textcol="none"> <label>New Textfile + OPEN it !</label> <tip>New Textfile + OPEN it !</tip> <icon1>#default:favoritesedit</icon1> <function type="normal"> <instruction>@nofilenamequoting</instruction> <instruction>@set fn={dlgstringS|Enter new file name (extension will be .txt)|New Textfile}</instruction> <instruction>FileType NEW=.txt NEWNAME=&quot;norename:{$fn}&quot;</instruction> <instruction>Select PATTERN=&quot;{$newfile}&quot; DESELECTNOMATCH</instruction> <instruction>&quot;C:\Program Files\Notepad++\notepad++.exe&quot; &quot;{$newfile}&quot;</instruction> </function> </button>

Windows7 32bit
DO 10.0.0.3 x86

It seems, no matter where you create the file, the contents of {$newfile} becomes : [b]c:\windows\system32[/b]thefile.txt :confused:

please disregard, instruction should have been :
"C:\Program Files\Notepad++\notepad++.exe" "{sourcepath}{$newfile}"

Thanks Leo. Don't know why v9 never had a problem with the missing {sourcepath} though.

[quote="Devilder"]please disregard, instruction should have been :
"C:\Program Files\Notepad++\notepad++.exe" "{sourcepath}{$newfile}"

Thanks Leo. Don't know why v9 never had a problem with the missing {sourcepath} though.[/quote]
I don't know exactly either, but it may have something with the default current directory being c:\windows\system32 in Opus 10. If you search the forum for c:\windows\system32 you may find some relevant information. Or I may be wrong and there may be no connection.

Thanks Bob,

Adding {sourcepath} what all i had to add. It's fine now :slight_smile: