我们如何从cpp中的备份文件(.bak)恢复代码 [英] How can we restore code from backup file (.bak) in cpp

查看:305
本文介绍了我们如何从cpp中的备份文件(.bak)恢复代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在cpp中恢复备份文件(.bak)中的代码

假设我的cpp扩展名.cpp的程序由于危急情况而被破坏而我想要检索它然后我如何获得备份?..

How can we restore code from backup file (.bak) in cpp
Assume that if my program of cpp extension .cpp that is destroyed due to the critical situation and i want to retrieve it then how can i get the backup ?..

推荐答案

嗨Buddy,



只需重命名BAK文件进入适当的源代码类型。如果它是C ++项目文件,您只需将其重命名为CPP扩展名。



Ex:

c:\> ren test.bak test.cpp



仅在命令提示符下执行命令。



问候,

--PPB
Hi Buddy,

Just rename the BAK file into proper source code type. If it is a C++ project file, you just simply rename it to CPP extension.

Ex:
c:\> ren test.bak test.cpp

Execute the command in command prompt only.

Regards,
--PPB


如果所有文件都在同一目录中,则rename命令允许使用通配符:

If all your files are in the same directory, the rename command allows wildcards:
c:\> ren *.bak *.cpp





希望有所帮助。



Hope it helps.


谢谢

但我不想重命名文件,但我想保留.bak文件我想自动生成.cpp文件,例如当你拿一个电话的备份文件,你可以在我们的手机中轻松恢复
Thank you
But i don't want to rename the file but i want to hold .bak file i want to generate the .cpp file automatically e.g. When u take a back-up file of phone and u can easily restore in our phone


这篇关于我们如何从cpp中的备份文件(.bak)恢复代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆