1 USING: editors io.launcher kernel io.directories.search.windows
2 math.parser namespaces sequences io.files arrays ;
5 : wordpad-path ( -- path )
7 "Windows NT\\Accessories" t
8 [ "wordpad.exe" tail? ] find-in-program-files
11 : wordpad ( file line -- )
12 drop wordpad-path swap 2array run-detached drop ;
14 [ wordpad ] edit-hook set-global