gpt4 book ai didi

windows - 如何转义 Windows 命令行中的空格?

转载 作者:可可西里 更新时间:2023-11-01 14:50:33 25 4
gpt4 key购买 nike

我正在尝试从 Windows cmd 启动支持 SD 卡的 Android 模拟器。

我试过:

emulator -sdcard C:/Documents and Settings/User/sdcard.img -avd avd_tablet

它不工作:无效的命令行参数:和

emulator -sdcard C:/Documents^ and^ Settings/User/sdcard.img -avd avd_tablet

它不适用于“^”:无效的命令行参数:and^

emulator -sdcard "C:/Documents and Settings/User/sdcard.img" -avd avd_tablet

它不适用于引号:无效的命令行参数:和

emulator -sdcard C:/Documents\ and\ Settings/User/sdcard.img -avd avd_tablet

它不适用于反斜杠转义:无效的命令行参数:和

emulator -sdcard C:/"Documents and Settings"/User/sdcard.img -avd avd_tablet

它不适用于部分反斜杠转义:无效的命令行参数:和

有什么建议吗?

最佳答案

作为Google描述,你必须指定到SD卡图像的相对路径

如果您的 SDK 安装在 C:\Documents and Settings\User\Android SDK,请按以下方式启动模拟器:

emulator -sdcard "..\..\..\sdcard.img" -avd avd_tablet

关于windows - 如何转义 Windows 命令行中的空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18854360/

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