在批处理文件中的用户桌面的路径 [英] path of user desktop in batch files
本文介绍了在批处理文件中的用户桌面的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做一个简单的批处理文件来复制位于批处理文件到桌面的同一路径下的文件夹和文件。我可以轻松地获得这个批文件使用所在的路径
I am doing a simple batch file to copy folders and files located under the same path of the batch files to the desktop. I can easily get the path where the batch file is located using
%~dp0
但我想知道如何获得用户桌面的路径(我使用的寡妇7旗舰版)
but I want to know how to get the path of the user's desktop (I am using Widows 7 Ultimate)
有什么建议?
推荐答案
我觉得这个应该没太
%systemdrive%\Documents and Settings\All Users\Desktop
问候
这篇关于在批处理文件中的用户桌面的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文