
批處理如何查找文件的盤符和變量并寫入文件我時常玩Dota,幾乎是天天玩吧,每次都用批處理把文件復制到內存盤里玩,但我的XP和Win7的系統(tǒng)內存盤又不在一個目錄內,而且連盤符都不一樣了。我想在批處理的文件位置定義一個變量,用變量把目錄內的壓縮好的HF和WAR3的包復制到內存盤,然后解壓,刪除壓縮文件,運行開圖和改鍵的輔助程序,當然內存盤的位置也要設置一個變量,再把修改用戶文件下的GameClient.ini,把UserExeFile=A:GameWarcraftwar3.exe文件的盤符位置換成當前的內存盤,說了那么多,好像越說越迷糊了。。。總結一下吧,問題是。一、變量有兩個,1個是批處理的位置,2是內存盤的位置,內存盤可能是A: B: R:中一個,批處理位置可能是C:gameboxWar3或F:gameboxWar3。因為是兩個硬盤,而WIN7和XP先讀的硬盤不一致。二、把寫內存盤內,例如A:GameWarcraftwar3.exe的絕對路徑,寫入到GameClient.ini中的相應War3.exe的位置(這個文件應該在%UserProfile%Local Settings下,但WIN7又是%UserProfile%ROWing不知為何。Win7內存盤在R:)其它我自己做把。提供GameClient.ini文件。
nclick="copycode($('code0'));">復制代碼
- [System]
- LoginType=0
- LgnErrLogFlag=0
- LgnTimeLogFlag=0
- LgnSrtyLogFlag=1
- SysInfoSent_V3=1
- IsProtectedMessage=1
- LBCtrl=1
- LBAlt=1
- LBKey=1
- [MultiUser]
- [Server]
- LastSelServer=1
- [Proxy]
- UseProxy=N
- NeedVerify=N
- ProxyID=
- Server=
- Port=1080
- UserName=
- [Fireware]
- HasFireware=N
- SelfSetPort=N
- ChatPort=1531
- GamePort=1532
- [CurrentUser]
- [Newslink]
- News1=滬深ADSL用戶注冊16T,免費成為VIP;http://www.cga.com.cn/16t
- NewsCount=6
- News2=點擊這里 只需1分鐘 馬上成為VIP!;http://cga1.game.chinavnet.com/_FreeExpVIP/getexpcard.aspx
- News3=浩方游戲硬件,炎炎夏日精彩無限;http://pc.cga.com.cn
- News4=平臺火爆魔獸RPG地圖推薦;http://war3.cga.com.cn/subject_index.asp?subject_id=4
- News5=浙江省首屆電子競技大賽報名火熱進行中;http://www.blogcn.com/zeg
- News6=吉列威鋒CS全國新秀賽火熱報名中;http://www.cga.com.cn/gillette/index.htm
- [DotA-Allstars]
- UserExeFile=A:GameWarcraftwar3.exe
- UserParamData=-windows
- IsChannelHide=0
- [真·三國無雙]
- UserExeFile=A:Warcraftwar3.exe
- UserParamData=
- IsChannelHide=0
- [澄海3C]
- UserExeFile=A:Warcraftwar3.exe
- UserParamData=
- IsChannelHide=0
- [LT3C]
- UserExeFile=A:Warcraftwar3.exe
- UserParamData=
- IsChannelHide=0
- [忍者村大戰(zhàn)]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [信長之野望]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [人族無敵]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [三國·藍寶石]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [真三無雙Eagel]
- UserExeFile=A:Warcraftwar3.exe
- UserParamData=
- IsChannelHide=0
- [魔獸RPG(電信)]
- UserExeFile=a:gamesWarcraftwar3.exe
- UserParamData=-windows
- IsChannelHide=0
- [魔獸RPG(網通)]
- UserExeFile=a:gamesWarcraftwar3.exe
- UserParamData=-windows
- IsChannelHide=0
- [寒冰王座]
- UserExeFile=A:Warcraftwar3.exe
- UserParamData=-windows
- IsChannelHide=0
- [無主之地]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [求生之路L4D/L4D2]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [反恐精英1.5]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [反恐精英1.6]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [星際爭霸]
- UserExeFile=A:BroodWarStarCraft.exe
- UserParamData=
- IsChannelHide=0
- [使命召喚]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [鷹擊長空HAWX]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [軍團要塞2]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [半神]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [實況8國際版]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [PES4實況足球]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [三角洲部隊]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [魔獸爭霸III]
- UserExeFile=A:Warcraftwar3.exe
- UserParamData=
- IsChannelHide=0
- [帝國時代]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [羅馬復興]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [帝國時代III]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [紅色警戒]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [共和國之輝]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [游戲大雜燴]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [游戲王-城之內]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [突襲]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [EA.NBA頻道]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [極品飛車]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [CS SOURCE]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [七龍珠]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [英雄無敵]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [彩虹六號]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [暗黑破壞神]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [榮譽勛章]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [地球帝國]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [盟軍敢死隊]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [HLTV轉播頻道]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [系統(tǒng)設置]
- LastChannel=1
- LastZone=69
- LastRoom=1
- LastPara=1
- GameMode=1
- ChatSystemColor=11053224
- ChatOwnerColor=0
- ChatOtherColor=0
- ChatFriendColor=0
- ChatAcceptSysInfo=0
- ChatAcceptOthersInfo=1
- ChatAcceptFriendInfo=0
- AcceptAddFriend=1
- [hfchkver]
- ver=5.4.4.422
- [火影忍者]
- UserExeFile=
- UserParamData=
- IsChannelHide=0
- [巨魔和精靈]
- UserExeFile=
- UserParamData=
- IsChannelHide=0

