memory - 通过命令行在 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
文本的来源可以是以下之一:
- echo abc like(立即制作)
- 现有文件的内容
- 剪贴板中的文本
也欢迎第 3 方实用程序解决方案。但存储位置应该是 RAM,而不是磁盘。
解决方案
推荐阅读
- javascript - 如何优化组合多个 axios 响应
- javascript - 如何在Javascript中为由php填充的字段设置值
- assembly - lea edx, 0[0+rax*4] 有什么意义?
- sql - 循环遍历不规则的数字列表以将行附加到汇总表
- wordpress - 如何批量编辑特色产品图片、菜单自定义链接和产品描述中的图片 URL?
- python - 列出集合中的元素导致错误
- c# - 使用 WNetUseConnection 时如何在客户端计算机上显示凭据对话框?
- c# - C#如何获取所有XML值
- appian - 在字典中查找关联值
- artificial-intelligence - 极小极大算法:转弯顺序重要吗?