tags:

views:

59

answers:

1

How to put file in sdcard using command line I tried by using adb push command but its not working my file is in D:/sample.ogg I had written

         adb push sample.ogg/sdcard/sample.ogg 

It's not working. Any help would be appreciated

Thanks

+3  A: 

In Command prompt type the following...

  mksdcard -l test 10M c:/test1.img

try starting the emulator and loading the SDcard from command prompt by typing...

  emulator -sdcard c:/test1.img

once emulator is started open another command prompt instance and try copying a file to SDcard by typing

  adb push e:/test.png sdcard/test.png

Later try retrieving the same file from sdcard to your system by typing

  adb pull sdcard/test.png d:/

see if the file has been copied in your d:/ ..try and tell me if it works for u:)

You can check my post here

http://www.anddev.org/error_while_writing_on_sdcard-t2997.html?sid=c01c1a23f34eb6bb7f97b6af99ca9816

Edit--

In the newer Android SDK's you can directly create an SD Card and start your emulator from your AVD in eclipse. You can neglect step 1 and 2 in that case and try push and pull commands directly

In your case it should be

adb push d:/sample.ogg sdcard/sample.ogg 
Rahul
Thanks rahul its worked
You are Welcome...
Rahul