You meanSkyFrontier wrote:Right now I'm combining "New Items" as suggested by Hallgren with POM. Created a little script which simply does a copy of a file and opens it using Wordpad, once Notepad shows a lot of strange symbols and completely screws the formatting of history.txt.
-anyone able to clean this code, please? Or is it fine? I do not like the "goto .\" / "#520" part - I'd like to simply press a button and have this newly (copy) created file opened with Wordpad, without in fact having to see the go-to-back-to dumb part of it.Code: Select all
goto .\; writefile ("history_v8.txt", readfile("history.txt", t), o, ta); openwith wordpad, m, "<curpath>\history_v8.txt"; copytext "usual"; status "..."; #520
As I am reading, POM may give a more comfortable solution - I'm just not familiar to it yet... (home lesson of the day)
- copy "history.txt" to "history_v8.txt" in current folder
- then open "history_v8.txt" with wordpad ?
One possibly would be:
Code: Select all
$copy = "<curbase>_v8.<curext>";
copyitem "<curitem>", $copy;
run "wordpad $copy";See wiki for all XY variables: http://88.191.26.34/XYwiki/index.php/Sc ... _Variables
You could also paste the script in the address bar:
::$copy = "<curbase>_v8.<curext>"; copyitem "<curitem>", $copy; run "wordpad $copy";
HTH?
XYplorer Beta Club