linux batÎļþÔõôÔËÐÐ
ÔÚ linux ÖÐÔËÐÐ .bat Îļþ²»¿ÉÐУ¬ÓÐÈýÖÖÌæ»»¼Æ»®£ºÊ¹Óà wine ¼æÈݲãÔËÐÐ windows ³ÌÐò¡£Ê¹Óà dosbox ms-dos ·ÂÕæÆ÷ÔËÐÐ dos Ó¦ÓóÌÐò¡£Ê¹Óþ籾ת»»Æ÷½« .bat Îļþת»»Îª bash ¾ç±¾¡£
ÔÚ Linux ÖÐÔËÐÐ .bat Îļþ
ÔÚ Linux ²Ù×÷ϵͳÖУ¬Ö±½ÓÔËÐÐ .bat ÎļþÊDz»¿ÉÄܵģ¬ÓÉÓÚ Windows Åú´¦ÀíÎļþºÍ Linux Bash ¾ç±¾¾ßÓвî±ðµÄÓï·¨ºÍÖ´ÐÐÇéÐΡ£¿ÉÊÇ£¬Óм¸ÖÖÒªÁì¿ÉÒÔ¼ä½ÓÔËÐÐ .bat Îļþ¡£
1. ʹÓà Wine
Wine ÊÇÒ»¸ö¼æÈݲ㣬ÔÊÐíÔÚ Linux ÉÏÔËÐÐ Windows ³ÌÐò¡£ÒªÊ¹Óà Wine ÔËÐÐ .bat Îļþ£¬ÇëÖ´ÐÐÒÔÏ°취£º
×°Öà Wine£ºsudo apt-get install wine
·¿ª Wine ¿ØÖÆÃæ°å£ºwinecfg
ÔÚ¡°Ó¦ÓóÌÐò¡±Ñ¡ÏÖУ¬µ¥»÷¡°Ìí¼ÓÓ¦ÓóÌÐò¡±²¢Ñ¡Ôñ .bat Îļþ
µ¥»÷¡°·¿ª¡±°´Å¥ÔËÐÐ .bat Îļþ
2. ʹÓà DOSBox
DOSBox ÊÇÒ»¸ö MS-DOS ·ÂÕæÆ÷£¬¿ÉÒÔÔÚ Linux ÉÏÔËÐÐ DOS Ó¦ÓóÌÐò¡£ÒªÊ¹Óà DOSBox ÔËÐÐ .bat Îļþ£¬ÇëÖ´ÐÐÒÔÏ°취£º
×°Öà DOSBox£ºsudo apt-get install dosbox
Æô¶¯ DOSBox£ºdosbox
½øÈë .bat ÎļþËùÔÚµÄĿ¼£ºcd /path/to/directory
ÔËÐÐ .bat Îļþ£ºbatch filename.bat
3. ʹÓþ籾ת»»Æ÷
ÉÐÓÐһЩ¾ç±¾×ª»»Æ÷¿ÉÒÔ½« .bat Îļþת»»ÎªÓë Linux ¼æÈÝµÄ Bash ¾ç±¾¡£ÕâЩת»»Æ÷¿ÉÒÔ×Ô¶¯Ö´ÐÐÓ﷨ת»»¡£
bat2sh£ºsudo apt-get install bat2sh
batsh£ºsudo apt-get install batsh
ҪʹÓþ籾ת»»Æ÷£¬ÇëÖ´ÐÐÒÔÏ°취£º
×°ÖÃת»»Æ÷
½« .bat Îļþת»»Îª Bash ¾ç±¾£ºbat2sh filename.bat
ÔËÐÐÌìÉúµÄ Bash ¾ç±¾£º./filename.sh
×¢ÖØ£º
ʹÓÃÕâЩҪÁìÔËÐÐ .bat Îļþʱ£¬¿ÉÄÜ»áÓöµ½Ò»Ð©¼æÈÝÐÔÎÊÌ⣬ÓÉÓÚ Windows ºÍ Linux ϵͳ֮¼äµÄ²î±ð¡£ÔÚijЩÇéÐÎÏ£¬Äú¿ÉÄÜÐèÒªµ÷½â .bat Îļþ»òʹÓÃÆäËûÒªÁìÀ´½â¾öÎÊÌâ¡£
ÒÔÉϾÍÊÇlinux batÎļþÔõôÔËÐеÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡