Reputation: 468
I'm trying to launch Android emulator with SD card support from Windows cmd.
I have tried:
emulator -sdcard C:/Documents and Settings/User/sdcard.img -avd avd_tablet
It is not working: invalid command-line parameter: and
emulator -sdcard C:/Documents^ and^ Settings/User/sdcard.img -avd avd_tablet
It is not working with "^": invalid command-line parameter: and^
emulator -sdcard "C:/Documents and Settings/User/sdcard.img" -avd avd_tablet
It is not working with quotes: invalid command-line parameter: and
emulator -sdcard C:/Documents\ and\ Settings/User/sdcard.img -avd avd_tablet
It is not working with backslash escaping: invalid command-line parameter: and
emulator -sdcard C:/"Documents and Settings"/User/sdcard.img -avd avd_tablet
It is not working with partial backslash escaping: invalid command-line parameter: and
Any suggestions?
Upvotes: 3
Views: 8827
Reputation: 2294
As Google describes, you have to specify the relative path to the SD card image.
If your SDK is installed at C:\Documents and Settings\User\Android SDK, start the emulator this way:
emulator -sdcard "..\..\..\sdcard.img" -avd avd_tablet
Upvotes: 3
Reputation: 354694
emulator -sdcard "C:\Documents and Settings\User\sdcard.img" -avd avd_tablet
should work. If it doesn't, then the program you are using is broken and you might have to look up how to pass paths with spaces to it. The Windows command line (unlike Unix shells) does no parameter parsing of commands; the program just gets a string with the complete command line and has to figure things out by itself.
Upvotes: 2