Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 906 Posts 346 Joined 2006-07-10 09:58 19-year member UID 58334 Gender Male
Status Offline
It is to convert REG files to CMD or BAT files. I have been seeking for a long time in various forums, and I got it here with the guidance of an expert:
Credits 4,103 Posts 1,744 Joined 2006-01-20 13:00 20-year member UID 49241 Gender Male From 甘肃.临泽
Status Offline
You need to first export a random registry file casually, and then look at the help of reg /?
Use for to process files, try it by yourself, and come ask again if you have unclear places! You directly asking for code like this, I'm afraid it's not the best solution!
Credits 5,310 Posts 2,044 Joined 2005-09-26 12:00 20-year member UID 42843 Gender Male From 四川南充
Status Offline
I'm not sure what specific transformation or further processing you want for this content. But if you just need to present the existing text as is after translation (since the main content is code and the Chinese part is about creating a batch script to convert sz.reg to reg.bat), the translated text would be:
I'll make a batch script that converts sz.reg to reg.bat
@echo off
for /f "tokens=*" %%a in ('type sz.reg') do echo echo %%a^>^>tmp.reg>>reg.bat
echo echo regedit /s tmp.reg>>reg.bat
Recent Ratings for This Post
( 2 in total)Click for details