Code: Select all
copyto "<curitem>.org", "<curitem>"Code: Select all
copyto "<curitem>.org", "<curitem>"Hi and Welcome to XY,j0nezn wrote:I am try to use a script or a user defined command to copy a file to the same directory but with an appended extension. example I want to copy C:\temp\test.ini to c:\temp\test.ini.org. I tried thiswhich copies the file to c:\temp\test.ini.org\test.ini. Where am I getting this wrong I have tried other examples but no luck.Code: Select all
copyto "<curitem>.org", "<curitem>"
Code: Select all
//Duplicate file with custom extension
focus;
$item=<curname>;
#201;
#202;
setting HideFoldersInList;
sortby c, d;
sel 1;
rename b, "$item.org/e";
Code: Select all
::New("<curname>.org", "file", "<curitem>");Thanks!! I was actually looking for this low level copier before posting my longish script.TheQwerty wrote:You could do this with New()..Will create a copy of the currently selected and focused file with ".org" appended to the name.Code: Select all
::New("<curname>.org", "file", "<curitem>");
Thanx worked like a charm would have never thought of using new.TheQwerty wrote:You could do this with New()..Will create a copy of the currently selected and focused file with ".org" appended to the name.Code: Select all
::New("<curname>.org", "file", "<curitem>");
Yes, it's surely unusual to use new for a copy. But it starts making sense when you think of the "[Shell] New" items offered in Explorer, which in fact are nothing but copies as well. And it's the same with XYplorer's "New Items" menu, where you can create "prefilled" new items.j0nezn wrote:Thanx worked like a charm would have never thought of using new.TheQwerty wrote:You could do this with New()..Will create a copy of the currently selected and focused file with ".org" appended to the name.Code: Select all
::New("<curname>.org", "file", "<curitem>");