首页 > 解决方案 > 通过命令行在 RAM 中存储一些文本

问题描述

操作系统:Windows 10

假设有一个文件夹 c:\test

如果我输入

echo abc > c:\test\123.txt

在命令提示符下,我在 test 文件夹中得到一个名为 123.txt 的文件,其内容为 abc。

但是是否可以在 RAM 中保存一些文本?可能的情况:

 (Input)   echo abc > SomeWhereInMyRAM

 (Output) The text 'abc' was stored successfully in your RAM. Its address is blahblah.

要加载文本并将其保存到 456.txt,可能的情况:

 GetFromRam blahblah (<- the stored address) > 456.txt

文本的来源可以是以下之一:

  1. echo abc like(立即制作)
  2. 现有文件的内容
  3. 剪贴板中的文本

也欢迎第 3 方实用程序解决方案。但存储位置应该是 RAM,而不是磁盘。

标签: memorytextsavestoreram

解决方案


推荐阅读