gpt4 book ai didi

windows - 如何在Windows7中使用批处理将文件移动到可移植设备

转载 作者:可可西里 更新时间:2023-11-01 13:51:08 29 4
gpt4 key购买 nike

我正在使用 Motorola MC67(我不确定这是否重要,但它是一种可移植设备)并且我想编写一个批处理脚本来将文件移动到那里。问题是我无法调用设备路径,因为它没有安装,我无法安装它。我在谷歌上找不到任何关于不是从 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.

关于windows - 如何在Windows7中使用批处理将文件移动到可移植设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17418328/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com