批处理文件中用户桌面的路径 [英] path of user desktop in batch files

查看:21
本文介绍了批处理文件中用户桌面的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个简单的批处理文件,将位于批处理文件同一路径下的文件夹和文件复制到桌面.我可以使用

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

但我想知道如何获取用户桌面的路径(我使用的是 Widows 7 Ultimate)

but I want to know how to get the path of the user's desktop (I am using Widows 7 Ultimate)

有什么建议吗?

推荐答案

我觉得这个应该也可以

%systemdrive%Documents and SettingsAll UsersDesktop

问候

这篇关于批处理文件中用户桌面的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆