Page 1 of 1
How to copy the content of text files without opening files?
Posted: 30 Mar 2012 06:37
by paul0
I am just curious about how to copy the content of text files to an editor without opening files
Your advice will be appreciated.

Re: How to copy the content of text files without opening fi
Posted: 30 Mar 2012 07:04
by Filehero
paul0 wrote:I am just curious about how to copy the content of text files to an editor without opening files
Oxymoron? Technically, files
have to be opened to access their content for copy.
Usually a text editor is used for
manual editing. So, I wonder why you just don't use the "open"-command?
Cheers,
Filehero
Re: How to copy the content of text files without opening fi
Posted: 30 Mar 2012 07:19
by paul0
Sometimes, I just copy some content for editing and keep the original file intact. The way doesn't require to backup the file either.
XYplorer is VERY powerful.

I started to be a little lazy....
Re: How to copy the content of text files without opening fi
Posted: 30 Mar 2012 07:33
by Slavaon
Use InfoTip Extension 2.0.4.106 (License free)
“If you press the following keys when InfoTip is shown, the InfoTip content
will be copied to the clipboard.
[Ctrl] key -> File's full path text.
[Shift] key -> content text.”
Windows all, the seventh х64 too
Re: How to copy the content of text files without opening fi
Posted: 30 Mar 2012 07:38
by paul0
Slavaon wrote:Use InfoTip Extension 2.0.4.106 (License free)
“If you press the following keys when InfoTip is shown, the InfoTip content
will be copied to the clipboard.
[Ctrl] key -> File's full path text.
[Shift] key -> content text.”
Windows all, the seventh х64 too
Thanks for sharing.
I use another similar tool called FileMenu.
Re: How to copy the content of text files without opening fi
Posted: 30 Mar 2012 09:14
by Filehero
paul0 wrote:Sometimes, I just copy some content for editing and keep the original file intact. The way doesn't require to backup the file either.
Copy your file
first (e. g. to a temp folder), and
then call open(). Simple as that.
Cheers,
Filehero
Re: How to copy the content of text files without opening fi
Posted: 30 Mar 2012 12:03
by Stefan
paul0 wrote:I am just curious about how to copy the content of text files to an editor without opening files
Maybe make an temp copy of that file first?
like:
Code: Select all
if (get("CountSelected") == 1) {
//user settings:
$file = "<curname>";
$temp = "%temp%\xy";
$copy = "COPY_$file";
//code:
copyitem $file, "$temp\$copy";
run notepad "$temp\$copy";
//delete [recycle=1], [confirm], [itemlist]
delete 1, 1, "$temp\$copy";
}else{
msg "Please select ONE file only!":
}
Re: How to copy the content of text files without opening fi
Posted: 30 Mar 2012 23:43
by paul0
Stefan wrote:
Maybe make an temp copy of that file first?
Thanks, Stefan. This is a perfect solution.

Re: How to copy the content of text files without opening fi
Posted: 09 Jul 2012 09:19
by aimy
XYplorer 11.40.0100
Why I got this error?
2012-07-09_152035.gif
Thank you.
Re: How to copy the content of text files without opening fi
Posted: 09 Jul 2012 10:37
by highend
Any info on when you get it, on which operation, using a script or not, etc., etc., etc....
Re: How to copy the content of text files without opening fi
Posted: 09 Jul 2012 11:14
by aimy
highend wrote:Any info on when you get it, on which operation, using a script or not, etc., etc., etc....
I assigned the above script by Stephan to the user button.
I click on one text file, then click that user button.
Then the error comes.
Thank you.
Re: How to copy the content of text files without opening fi
Posted: 09 Jul 2012 11:42
by highend
Unable to reproduce with a simple text file an Stefan's script...
v11.40.0005