如何复制文件使用批处理纠正Program Files文件夹? [英] How to copy files to correct program files folder using batch?

查看:1120
本文介绍了如何复制文件使用批处理纠正Program Files文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何创建一个简单的批处理文件从一个目录里的文件程序,拷贝文件\\我的文件夹?

How do I create a simple batch file which copies a file from one directory to program files\my folder?

如果操作系统是Windows 64位那么我想复制到 C:\\ Program Files文件(x86)的\\我的文件夹或Windows 32位的则 C:\\ Program Files文件\\我的文件夹

If the OS is Windows 64-bit then I want to copy to C:\Program Files (x86)\My Folder or Windows 32-bit then C:\Program Files\My Folder.

推荐答案

使用的%ProgramFiles%,并让操作系统弄清楚所在的文件需要走。

Use %ProgramFiles%, and let the operating system figure out where the files need to go.

copy C:\MyFiles\*.* "%ProgramFiles%\My Folder\"

这篇关于如何复制文件使用批处理纠正Program Files文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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