加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

如何在windows7中使用批处理将文件移动到便携式设备

发布时间:2020-12-14 02:09:56 所属栏目:Windows 来源:网络整理
导读:我正在使用摩托罗拉MC67(我不确定这个问题,但它是一个便携式设备),我想写一个批处理脚本来移动文件.问题是我无法调用设备路径,因为它没有安装,我无法安装它.我无法在google上找到关于不是从 Windows GUI获取设备的任何内容.我读到某处activeSync可以从便携式
我正在使用摩托罗拉MC67(我不确定这个问题,但它是一个便携式设备),我想写一个批处理脚本来移动文件.问题是我无法调用设备路径,因为它没有安装,我无法安装它.我无法在google上找到关于不是从 Windows GUI获取设备的任何内容.我读到某处activeSync可以从便携式设备同步,但这对我没用.
无论如何,我再说一遍,我需要一种方法将文件从我的电脑移动到未安装的便携式设备.安装设备的方法也很好,因为我可以从批处理文件中访问它

解决方法

首先,您需要下载 Windows Mobile Developer Power Toys,因为它包含此解决方案所依赖的cecopy实用程序.

基本上,您需要做的就是:

cecopy file.exe dev:file.exe

这是cecopy的自述文件.

INSTRUCTIONS:
Usage:  CeCopy  [options] <Source_FileSpec>  <Destination>

Options:

    /is                  Copy file even if identical.
    /s                   Include subdirectories,hierarchy reproduced on device.

Arguments:

    Source_FileSpec      File specification denoting the source of the copy.
    Destination          Where files should be copied to.

For the source,wild cards or directory names may be specified,as may be single files.  The destination can be either a directory or a file name,depending on the type of source specified.

By default,an argument is assumed to live on a local file system.  To indicate that either argument denotes a location on a device connected via ActiveSync,prepend 'dev:' to that argument.   To articulate that a local file system is referenced,prepend 'desk:' to the argument.

Examples:
"cecopy readme.txt dev:readme.txt" copies this readme to the device's root.
"cecopy /s *.* dev:" copies all files and subfolders of current directory to device's root.  Generates new folders on device as needed.
"cecopy /s *.dll dev:windows" copies all dlls and dlls in subfolders of current directory to the device's root.  Generates new folders on device as needed.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读