求位会写梦幻西游端游脚本本的大手 就主线1到21级就行 事后有答谢 你懂的 急急急

3016人阅读
others(7)
Windows脚本 - %~dp0的含义
更改当前目录为批处理本身的目录
有些晕吧?不急,我举例
比如你有个批处理a.bat在D:\qq文件夹下
a.bat内容为
cd /d %~dp0
cd /d %~dp0的意思就是cd /d d:\qq
%0代表批处理本身 d:\qq\a.bat
~dp是变量扩充
d既是扩充到分区号 d:
p就是扩充到路径 \qq
dp就是扩充到分区号路径 d:\qq
扩充变量语法详解:
:: 选项语法:
:: ~I - 删除任何引号("),扩充 %I
:: %~fI - 将 %I 扩充到一个完全合格的路径名
:: %~dI - 仅将 %I 扩充到一个驱动器号
:: %~pI - 仅将 %I 扩充到一个路径
:: %~nI - 仅将 %I 扩充到一个文件名
:: %~xI - 仅将 %I 扩充到一个文件扩展名
:: %~sI - 扩充的路径只含有短名
:: %~aI - 将 %I 扩充到文件的文件属性
:: %~tI - 将 %I 扩充到文件的日期/时间
:: %~zI - 将 %I 扩充到文件的大小
:: %~$PATH:I - 查找列在路径环境变量的目录,并将 %I 扩充
:: 到找到的第一个完全合格的名称。如果环境变量名
:: 未被定义,或者没有找到文件,此组合键会扩充到
:: 空字符串
:: 可以组合修饰符来得到多重结果:
:: %~dpI - 仅将 %I 扩充到一个驱动器号和路径
:: %~nxI - 仅将 %I 扩充到一个文件名和扩展名
:: %~fsI - 仅将 %I 扩充到一个带有短名的完整路径名
:: %~dp$PATH:i - 查找列在路径环境变量的目录,并将 %I 扩充
:: 到找到的第一个驱动器号和路径。
:: %~ftzaI - 将 %I 扩充到类似输出线路的 DIR
----------------------------
http://www.911cd.net/forums/lofiversion/index.php/t3730.html
Look at this:
Manipulating variables in CMD shell
I'm not sure why this type of information isn't more prominent in the help files, but there you go. NT's command shell can manipulate variables but the operations you can perform are fairly limited. Still, better than nothing. :-) If you want to do some
really clever stuff then you're going to have to look elsewhere. Vbscript can be useful as it's got lots of string handling capabilities. There's also Perl and AWK which are Windows (windoze?) ports of some very powerful Unix commands.
%1 is your command line option.
Namely: mycommand.cmd myoption1.
%0 determins where the batch file is running from. I've created a demo batch file in my winnt system32 folder called x.cmd. Running this gives the results shown below
%~f1 expands %1 to the drive, path and file name. If you pass %1 from the current directory then this expands that variable to it's full path
echo f0 = %~f0 produces f0 = c:\WINNT\system32\x.cmd
%~d1 gets the drive letter from %1
echo d0 = %~d0 produces d0 = D
%~p1 extracts the path from variable %1
echo p0 = %~p0 produces \WINNT\system32\
%~dp1 pulls the drive letter and path
echo dp0 = %~dp0 produces C:\WINNT\system32\
%~sp1 creates a short path (but no drive letter)
echo sp0 = %~sp0 produces \WINNT\system32
If I set %1 to "c:\Program Files\Internet Explorer" then %~sp1 produces \PROGRA~1\INTER. Note you have to wrap the long path in quotes otherwise the truncation doesn't work.
%~x1 leaves only the command extension
echo x0 = %~x0 produces .cmd
%~nx1 extracts the file name and extension
echo nx0 = %~nx0 produces x.cmd
%~sx1 extracts the short extension from %0
echo sx0 = %~sx0 produces .cmd but a longer extension (.document?) would be cut down to .doc
----------------------------
%~dp0 VS %cd%
http://www.computerhope.com/forum/index.php?topic=54333.0
%cd% is available either to a batch file or at the command prompt and expands to the drive letter and path of the current directory (which can change e.g. by using the CD command)
%~dp0 is only available within a batch file and expands to the drive letter and path in which that batch file is located (which cannot change). It is obtained from %0 which is the batch file's name.
An experiment like the following shows the difference
Here is D:\dirshow.bat:
echo this is %%cd%%
echo this is %%~dp0 %~dp0
Run it from C:\ and this is what you see
C:\&D:\dirshow.bat
this is %cd%
this is %~dp0 D:\
来源:http://wuliupo.blog.163.com/blog/static//
阅读:821933,439被浏览633,975分享邀请回答1.2K160 条评论分享收藏感谢收起erogamescape.ddo.jp/~ap2/ero/toukei_kaiseki/rireki_junni_median.php#list_header当然上榜的必须是R18游戏 也就是说非R18的游戏不会上榜投票数200+ 评分85+都是属于超级棒的游戏 90+的就属于顶尖的游戏了对于非R18的游戏 可以在首页搜素 (当然任何GAL都能搜索)左边有个【検索】 选择【ゲーム】(game) 【名前】输入名字即可(记得是原名 部分也可)(例如【素晴らしき日々~不連続存在~】你只需要输入【素晴】也可找到)当然也可以选择【ブランド】(brand) 查看该会社出的所有游戏以及每个游戏的分数以及信息(例如输入【ケロQ】以查找【ケロQ】的所有作品)选择【クリエイター】(creator) 查看剧本家(例如输入【SCA-自】以获得他的信息)【POV/タグ】=tag(游戏标签 例如输入【百合】以查看所有拥有百合标签的游戏)【ユーザー】=user(不理解 估计是批评空间的会员查询?)【キャラクター】=character(不好用 很多人物查询不到)其他的没用过下面是剧本家投票情况 找他们的代表作玩是没有错误的(シナリオ=剧本
キャラデザ=人物设计)对于非R18的游戏 我所了解的少数几个Clannad, SGate, Ever17, 90分 属于顶尖的游戏然后每个游戏点进去会有详细信息显示 比如【素晴らしき日々~不連続存在~】各种情报都有 可以对其有个了解其次 2ch论坛以及getchu也属于可供参考的网站(我不是很懂2ch)(我目前上不去 但是以前是能上去的)下面是私货时间 本人日语不行 推原版感觉有些吃力 所以本人通关过的游戏都是汉化过的 简单介绍一下 不扯过多私最喜欢的游戏当属【素晴らしき日々~不連続存在~】电波作品 SCA-自表现的淋漓尽致 越往后走越欲罢不能 但是如果电波对不上 对不起 早点弃 不然三观毁了不要找我【White Album 2】霸榜作品 本来YUNO自出世之后就一直占据榜首 直到11年WA2出世 丸户史明以其细腻的笔触 描绘了一段可歌可泣的感情(你说它就是一三角恋我也不能反对 但是三角恋写到这程度其他我还没有见过) 当年GIGA放跑了丸户真是犯2【Baldrsky Dive1+2】这真的是Galgame么? 可玩度很高 剧情超棒 如果玩请你一定要全线通关 少有的我觉得BE或者NE做的比GE好的游戏(BE和NE更有思考性 毕竟GE必须是传统的结局)【Clannad】如果说WA2是一部关于爱情的作品 CL就是一部关于亲情的作品 无论是学园篇还是AS做的相当好 名副其实的催泪弹(毕竟是三个剧本家写了四年共同写出来的东西 顺便凉元悠一写的琴美线哭死我了)【SGate】少有的关于时间的作品 理论体系相当完整 剧本也写得相当好 惊喜到处都有哦以上5作品都能让你有或多或少的思考 (个人属于剧情至上) 如果要排名 我的前五如上其他作品请移步ErogameScape(5.20补充)以上4212 条评论分享收藏感谢收起

我要回帖

更多关于 问道端游自动刷道脚本 的文章

 

随机推荐