当前位置:首页 >> 脚本专栏

cnct.batch 批处理不错的东西%cd%

来自:http://hamaburg.googlepages.com/hamafirstprograme
系统学习笔记
at 15:00 /interactive cmd
系统权限的Shell::) 
—————————— 
不要忘记
fdisk /mbr
不知在SATA硬盘是否正常工作
ntsd -c q -p PID
复制代码 代码如下:
rem cnct.batch 
cd>dir.txt

set /p dynedpath=<dir.txt

echo [Records]>RECORDS.INI
echo records_mode=HDRECORDS.INI
echo audio1=N[ (T 9F 9B 1_ ? ?V ^<W +V (W 'V $W 3V 0M 3L ,M /L (M +L $M 'L @M CL ^<M ?L 8M ;V 8W 7V 4W CV @W ?V ^<W +V (W 'V $W 3 3U!nxRECORDS.INI
echo records_path_win=%dynedpath%\dataRECORDS.INI
echo data_path_win=%dynedpath%\launchRECORDS.INI
echo records_ini_path_win=%dynedpath%\RECORDS.INI
echo floppy_path=A:RECORDS.INI                        
echo email_button=YRECORDS.INI                        
echo downloadaddress=http://files.dyned.com.cn/coursesRECORDS.INI
echo useproxy=yRECORDS.INI
echo proxyipaddress=autoRECORDS.INI
echo proxyipport=0 RECORDS.INI
echo recordsipaddress=china1.records.dyned.comRECORDS.INI
echo recordsipport=80RECORDS.INI
echo server_num=002RECORDS.INI
echo server_list_ver=006RECORDS.INI
echo server_name=Server-2 (China)RECORDS.INI
echo cgipath=DynEdRS.DRSRECORDS.INI
echo wo_responsepage=noneRECORDS.INI
echo streamingaddress=http://files.dyned.com.cn/streamRECORDS.INI
echo serverchecksum=53f94948201eccf310ddb6b35548ac8dRECORDS.INI
echo 010MUL41=007RECORDS.INI
echo launcher_picture=DynEd.jpgRECORDS.INI
echo disable_QT_accleration=nRECORDS.INI
echo rm2_ver=210.005.000.002RECORDS.INI
echo launcher2_ver=210.004.009.002RECORDS.INI
echo engine2_ver=210.004.009.002RECORDS.INI
echo uptodate2_ver=210.004.008.002RECORDS.INI
echo docIni_ver=020RECORDS.INI
echo internet_lan=yRECORDS.INI
echo 050MUL30=009RECORDS.INI
echo dial_up_connection=nRECORDS.INI
echo 062MUL40=007RECORDS.INI
echo 060MUL41=007RECORDS.INI
echo 059MUL41=009RECORDS.INI
echo 034MUL30=007RECORDS.INI
echo 038MUL41=007RECORDS.INI
echo 061MUL40=007RECORDS.INI
echo 027MUL41=007RECORDS.INI
echo 039MUL41=007RECORDS.INI
del dir.txt

赫赫 后来学会了 %CD%变量,
省去了自己  设变量再传递值 
复制代码 代码如下:
rem setpath.BATCH v-0.5
rem cd>dir.txt
rem set /p dynedpath=<dir.txt

echo [Records]>RECORDS.INI
echo records_mode=HDRECORDS.INI
echo audio1=N[ (T 9F 9B 1_ ? ?V ^<W +V (W 'V $W 3V 0M 3L ,M /L (M +L $M 'L @M CL ^<M ?L 8M ;V 8W 7V 4W CV @W ?V ^<W +V (W 'V $W 3 3U!nxRECORDS.INI
echo records_path_win=%cd%\dataRECORDS.INI
echo data_path_win=%cd%\launchRECORDS.INI
echo records_ini_path_win=%cd%\RECORDS.INI
echo floppy_path=A:RECORDS.INI                        
echo email_button=YRECORDS.INI                        
echo downloadaddress=http://files.dyned.com.cn/coursesRECORDS.INI
echo useproxy=yRECORDS.INI
echo proxyipaddress=autoRECORDS.INI
echo proxyipport=0 RECORDS.INI
echo recordsipaddress=china1.records.dyned.comRECORDS.INI
echo recordsipport=80RECORDS.INI
echo server_num=002RECORDS.INI
echo server_list_ver=006RECORDS.INI
echo server_name=Server-2 (China)RECORDS.INI
echo cgipath=DynEdRS.DRSRECORDS.INI
echo wo_responsepage=noneRECORDS.INI
echo streamingaddress=http://files.dyned.com.cn/streamRECORDS.INI
echo serverchecksum=53f94948201eccf310ddb6b35548ac8dRECORDS.INI
echo 010MUL41=007RECORDS.INI
echo launcher_picture=DynEd.jpgRECORDS.INI
echo disable_QT_accleration=nRECORDS.INI
echo rm2_ver=210.005.000.002RECORDS.INI
echo launcher2_ver=210.004.009.002RECORDS.INI
echo engine2_ver=210.004.009.002RECORDS.INI
echo uptodate2_ver=210.004.008.002RECORDS.INI
echo docIni_ver=020RECORDS.INI
echo internet_lan=yRECORDS.INI
echo 050MUL30=009RECORDS.INI
echo dial_up_connection=nRECORDS.INI
echo 062MUL40=007RECORDS.INI
echo 060MUL41=007RECORDS.INI
echo 059MUL41=009RECORDS.INI
echo 034MUL30=007RECORDS.INI
echo 038MUL41=007RECORDS.INI
echo 061MUL40=007RECORDS.INI
echo 027MUL41=007RECORDS.INI
echo 039MUL41=007RECORDS.INI