<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Oraclepersistence的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Oraclepersistence</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Oraclepersistence]]></copyright><item><title><![CDATA[win7中以管理员身份运行bat脚本时，获取当前文件所在目录]]></title><link>https://blog.csdn.net/Oraclepersistence/article/details/42710943</link><guid>https://blog.csdn.net/Oraclepersistence/article/details/42710943</guid><author>Oraclepersistence</author><pubDate>Wed, 14 Jan 2015 15:49:34 +0800</pubDate><description><![CDATA[win7中以管理员身份运行bat脚本时，获取当前文件所在目录



    知道windows的bat脚本很强大，但是具体命令向来很少接触，今天在win7上运行自己以前写的一个安装mysql数据库到系统服务的脚本时，遇到一些问题，下面记录一下。



问题：mysql服务安装脚本在win7下运行失败



原因：win7下，以右键的“以管理员身份运行”默认进入的目录是C:\]]></description><category></category></item></channel></rss>