此站点大量使用JavaScript。
请在您的浏览器中启用JavaScript。
正式服
PTR
10.2.5
PTR
10.2.6
Batch File clearing Cache for _NPCscan
来自 269607
[Last Updated]:
2011/10/13
补丁:4.0.2
评分:4.2/5
(
26
投票)
You can use a batch file to automate the deletion process of the creaturecache.wdb file for _NPCscan in Windows Vista and Win7.
The reason for this is that you can not manually reset rare creatures found in the addon and it takes manually deleting the file to reset the addon.
This batch file creation will allow you to delete the cache file and start wow in one click.
This takes a little PC savy but easy once you know the basics.
To start open Notepad and click File then Save As
In the File name box type: wow.bat
and select your desktop for location to save the file, and click Save
Once this is done copy and paste the following lines into notepad then click Save
@ECHO OFF
REM The next line deletes the creature cache
PAUSE
DEL "C:\Users\Public\Games\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
REM The next line will start World of Warcraft
PAUSE
CALL "C:\Users\Public\Games\World of Warcraft\Launcher.exe"
EXIT
To explain this
@ECHO OFF prevents the batch file from looping
REM is hidden text to notate what is happening (these can be removed)
DEL is the delete command... the path must be inside quotation marks for Vista and Win7 to prevent long filename issues.
PAUSE asks for user input "press any button to continue", (these can be removed from the above code to speed things up)
CALL contacts and opens an exsisting program or file.
EXIT once the batch has confirmation the file has opened it will close the batch file window.
You can place this batch file anywhere, right click the Wow.bat file select "Send To" create a link on desktop, then right click the link on your desktop select properties select the Shortcut Tab in Win7, at the bottom click "Change Icon..." and select a icon to replace the drab batch file one.
Good luck hope this helps.
[Get Wowhead]
高级会员
[$2]
[A Month]
[Enjoy an ad-free experience, unlock premium features, & support the site!]
评论
评论来自
Deadi
My hero.
评论来自
hameshy
Very simple and useful.
评论来自
Edawan
After I started using NPCScan I quickly made a .bat file for myself too, though it's a lot simpler :
DEL "E:\World of Warcraft\Cache\WDB\frFR\creaturecache.wdb"
"E:\World of Warcraft\Launcher.exe"
That's all that's needed !
评论来自
223290
@ECHO OFF has nothing to do with the file looping. What it does is it makes your batch file commands hidden in the command prompt screen. If you didn't type it in at the beginning, your command prompt would look similar to this when running your batch file:
PAUSE
DEL "C:\Users\Public\Games\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
PAUSE
CALL "C:\Users\Public\Games\World of Warcraft\Launcher.exe"
EXIT
It's simply for aesthetics. It hides the commands that are being run, but it still lets the commands spit out their results.
ECHO is also used to print text on the screen.
Here's another example to understand better:
If in the batch file I type in the following:
ECHO Hello World
DEL "C:\Users\Public\Games\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
EXIT
What I will see when running the batch file is:
ECHO Hello World
DEL "C:\Users\Public\Games\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
EXIT
But if I was to add @ECHO OFF at the top, before "ECHO Hello World", this is all that I will see when running the batch file:
Hello World
So the commands being run are hidden, even the ECHO command that is used to print text on the screen. The results of the command are not hidden, which is why we still see "Hello World" in the command prompt screen. If for example the creaturecache.wdb file was already deleted, you would also see a file not found error, without seeing the delete command that was issued.
评论来自
Naketus
Here is maybe best code to do this:
@ECHO OFF
DEL "D:\World of Warcraft\Cache\WDB\enGB\creaturecache.wdb"
START "" "D:\World of Warcraft\Wow-64.exe"
EXIT
You barely don't even see command line window when cache is already deleted and game has started.
评论来自
1046309
Has anyone figured out how to make a working batch file for windows 8?
I have tried to correct the file paths already with no success.
评论来自
BrokeBastid
Use for Windows 7 64 bit OS:
@ECHO OFF
DEL "C:\Program Files (x86)\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
DEL "C:\Program Files (x86)\World of Warcraft\Cache\WDB\enUS\npccache.wdb"
CALL "C:\Program Files (x86)\World of Warcraft\World of Warcraft Launcher.exe"
EXIT
Deletes both the creature and the npc cache
评论来自
khader91
im lost (noob lol) so does this refresh the cache without me having to leave the game?
评论来自
947813
using win 7 and wow is saved in its default location
this is how my bat file looks
works fine every time very simple
with the quotation marks as they are above the files may not be located
so i use them only in files containing spaces as intended
del C:\"Program Files (x86)"\"World of Warcraft"\Cache\WDB\enUS\creaturecache.wdb
del C:\"Program Files (x86)"\"World of Warcraft"\Cache\WDB\enUS\npccache.wdb
start C:\"Program Files (x86)"\"World of Warcraft"\"World of Warcraft Launcher.exe"
评论来自
lylyt
Hello everyone, I am using two cmd file. Now I tell you why.
The first deletes the cache as shown above.
Second - copies and archives all addons and moving the screenshots in a separate directory.
First file
@echo off
RD /S /Q "C:\Games\World of Warcraft\Cache"
pause
Second file
@echo off
MOVE /y "C:\Games\World of Warcraft\Screenshots\*.*" "X:\Documents\WOWArj\scr\"
start /b "C:\Program Files\WinRAR\Rar.exe" a X:\Documents\WOWArj\Addons_Archive_%DATE%.rar "C:\Games\World of Warcraft\interface" "C:\Games\World of Warcraft\WTF"
pause
Далее по русски: next in Russian:
Всем привет, я использую два cmd файла. Сейчас я расскажу почему.
Первый удаляет кеш как это показано выше.
Второй - копирует и архивирует все addons и переносит скриншоты в отдельную директорию. Для него необходим win rar (rar.exe)!
Первый файл.
@echo off
RD /S /Q "C:\Games\World of Warcraft\Cache"
pause
Второй файл.
@echo off
MOVE /y "C:\Games\World of Warcraft\Screenshots\*.*" "X:\Documents\WOWArj\scr\"
start /b "C:\Program Files\WinRAR\Rar.exe" a X:\Documents\WOWArj\Addons_Archive_%DATE%.rar "C:\Games\World of Warcraft\interface" "C:\Games\World of Warcraft\WTF"
pause
贡献
在发表评论前,请留心以下提示:
您的评论必须为简体中文,否则将会被删除。
不知道如何发评论?参考我们的
格式指南
!
发表前最好先自行校对一次。
有问题可以访问我们的
论坛
来寻求帮助。
发表评论
你没有登录。
请登录
或者
注册账号
来添加你的评论。
使用下面的表格浏览您的截屏。
[Screenshots containing UI elements are generally declined on sight, the same goes for screenshots from the modelviewer or character selection screen.]
质量越高越好!
[Please review our
Screenshot Guidelines
before submitting!]
您没有登录。请
登录
后提交截屏。
将视频URL输入下列表格即可。
URL:
支持:仅限 YouTube
说明:您的视频需通过审核才能在站点上显示。
我们用
Wowhead 客户端
保证数据库的及时更新,向您提供额外的有趣的功能!
两大目的:
它还维护WoW的一个插件
Wowhead Looter
, 在您游戏时采集数据!
它将
采集所得数据
上传至Wowhead,保证数据库时刻掌握最新信息!
您可以用它追踪完成的任务、配方、坐骑、伙伴宠物以及头衔!
您还在等什么?立即
下载客户端
整装待发吧。
我们用 Wowhead 客户端保证数据库的及时更新,向您提供额外的有趣的功能!
两大目的:
您可以用它追踪完成的任务、配方、坐骑、伙伴宠物以及头衔!
您还在等什么?立即 下载客户端 整装待发吧。