且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-11-03 08:27:23

嗨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