1. Are you ready for the Galaxy S20? Here is everything we know so far!

Access a windows foreign network ressource in a script

Discussion in 'Android Development' started by Tchitchi, Apr 19, 2012.

  1. Tchitchi

    Tchitchi Lurker
    Thread Starter

    Hi,
    I should like to manipulate (copy, delete, rename..) files and folders on PC under Windows, with a script being executed on my smartphone under Android.
    However, i don't know the correct syntax to use to do this.
    I use Script Manager with the Samba addon.

    If i was on a PC under Windows, i will do, by example, that in a batch :
    net use \\192.168.2.x my_password /USER:my_user
    copy local_filename \\192.168.2.x\c$\foreign_folder

    This DOS script copy a local file on a remote hard disk.

    I should like do know how to do this on my Smartphone in a script executed by Script Manager.

    If somebody can give me the correct syntax to do this, this would be super !

    Thank's :)

    PS : Sorry for my poor english but i'm french
     


  2. jonbonazza

    jonbonazza Android Expert

    There might be a better way to do this, but if it were I, I would have a server running on the computer I wanted to "play with" that receives requests from the client (android device) via your own protocol, then, depending on the protocol message the server receives from the client, the server would perform the appropriate operation on the file system.
     
Loading...

Share This Page

Loading...