求帮忙,写文件的问题
cmd吧
全部回复
仅看楼主
level 2
CactusWanders 楼主
有办法把 ver | find "5.1." > NUL && set type=windowsxp && goto shortcut 这句话用cmd写到文件里面吗?
2014年01月24日 04点01分 1
level 2
CactusWanders 楼主
不能带引号,为啥我什么都写不进去?
2014年01月24日 04点01分 2
level 2
CactusWanders 楼主
求罩,各位
2014年01月24日 04点01分 3
level 12
楼主 不知道你是否愿意终身常驻本吧!
--------------------------解决办法----------------
ver | find "5.1." > NUL && set type=windowsxp && goto shortcut
-----------------------------如下------------------
@echo off
set "x=ver^|find "5.1."^>NUL^&^&set type=windowsxp^&^&goto shortcut"
echo %x%>x.txt
pause
-----------------将入见保存为转移输出特殊字符.cmd--------------
双击cmd文件即可得到楼主想要的结果
-------------------邀请---------------------------------------------------
欢迎楼主来到这里与大家共同交流
2014年01月24日 10点01分 4
已经解决,不过还是谢谢啦[笑眼]
2014年01月27日 06点01分
回复 CactusWanders :。。。。。。。
2014年01月27日 07点01分
回复 命幽 :这是让他来卖命么。。。
2014年02月01日 04点02分
回复 逍遥nn不再 :不让她来 你来?[滑稽]
2014年02月01日 05点02分
level 12
echo ver^|find "5.1."^>NUL^&^&set type=windowsxp^&^&goto shortcut>x.txt
楼主看这里
这个是比较短的代码 与上面的代码相同 上面那个还涉及到了变量的赋值 这个仅仅依靠echo 就可以实现了 是不是很简单呢
如果楼主有兴趣 研究cmd变量 可以到cmd吧共同探讨
2014年01月24日 10点01分 5
弱弱求教“终身常驻本吧”是卖身于此的意思吗?都是些啥工作啊??小女子只做劳工,不服侍人的哦。[呼~]
2014年01月27日 06点01分
回复 CactusWanders :。。。。。。。。
2014年01月27日 07点01分
回复 hhexinnan :。。。。。。。
2014年01月27日 23点01分
1