Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 13 of 13

Thread: Network drive

  1. #1
    Join Date
    Nov 2009
    Posts
    24

    Network drive

    Hallo, i 'm french so ...
    How can i mont a network drive like 'net use ?

    I'm search for a long time but i don't find.
    Please help me.
    Thancks a lot

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    You can either call the windows api, or just shell out to Net.exe to use.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Nov 2009
    Posts
    24
    ok, if i anderstand :

    result = Shell.Execute("AutoPlay\\Docs\\net.exe", "open", "use h: \\xxx.xxx.xxx.xxx\utilisat pass /USER:domaine\compte", "", SW_SHOWNORMAL, false);

    but it dont work

    I know, i'm a very bad programmer

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    That wouldn't work unless you put net.exe into your folder...

    Code:
    File.Run(_SystemFolder.."\\net.exe", "use h \\ip\share /user:usr", "", -1, true);


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Nov 2009
    Posts
    24
    Good information, Thancks.

    but I don't knows how can i ask for argument.

    IP= Input.GetText("IP")
    Ident = Input.GetText("Ident")
    Password = Input.GetText("Password")
    File.Run(_SystemFolder.."\\net.exe", "use h \\IP\public Password/user:Ident", "", -1, true);

    This code don't work... snif

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    You need to RTFM and pick up some basic coding skills. this is very very basic.

    Code:
    cIP =Dialog.Input("Net Use", "Machine name or IP?","",MB_ICONQUESTION)
    cUSER =Dialog.Input("Net Use", "User Name?","",MB_ICONQUESTION)
    
    Password = Input.GetText("Password")
    File.Run(_SystemFolder.."\\net.exe", "use h \\"..cIP.." /user:"..cUser, "",SH_SHOWNORML, true);


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  7. #7
    Join Date
    Nov 2009
    Posts
    24

    Peekaboo!

    Thancks a lot,

    But show my script and help me please.
    I want to connect : xxx.xxx.xxx.xxx\utilisat with Password and Ident
    but i sea a black dos windows 1/4 s and it don't connect the ressouce.

    Wath the 'c' mean in cIP ?

    cIP= Input.GetText("IP")
    cIdent = Input.GetText("Ident")
    cPassword = Input.GetText("Password")
    File.Run(_SystemFolder.."\\net.exe", "use h \\"..cIP.."\\utilisat "..cPassword.." /user:courrier\\"..cIdent, "",SH_SHOWNORML, true);

  8. #8
    Join Date
    Nov 2009
    Posts
    24
    on dos the commande line is :
    net use h: \\xxx.xxx.xxx.xxx\forder_shared Password /USER:domaine\indent

    So in autoplay
    args = "use h: \\".."\\"..cIP.."\forder_shared"..cPassword.." /user:domaine\\"..cIdent

    but if i extract the commande line :
    net use h: \xxx.xxx.xxx.xxx\forder_shared Password/USER:domaine\indent

    So, \ for \\ is it the problème and if is it, i don't knows how can i solve it.

    I need somme help, please

  9. #9
    Join Date
    Nov 2009
    Posts
    24
    To solve my problem, I tri to pass the parameter in bat file.

    So my argument is IP Ident and Password.

    But it should be impossible to do that.
    Args=IP.." "..Ident.." "..Password

    don't work

    So i thick Audioplay media studio is more complexe than dos batch file.

    Please help me with variable in Audio play. I don't andertend.


  10. #10
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    what is the command you use in dos?
    you can then emulate that in ams using File.Run.

    In the example 'h' is misisng a colon(H and if you don't want to show the results change show_normal to -1


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  11. #11
    Join Date
    Nov 2009
    Posts
    24
    Hallo,
    The commande line :
    net use h: \\142.47.49.240\utilisat test /USER:dom\alain

    How can i translate this in autoplay media studio

    I want to ask for IP Ident and password


  12. #12
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    attached -- if that doesn't help you -- I'm out of ideas.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  13. #13
    Join Date
    Nov 2009
    Posts
    24
    Thancks youpi lol

    It's good

    Now, i just want to know how can i pass argument to dos.bat file

    Bye

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts