Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2001
    Posts
    5

    1st command parameter or somth'n like that

    ugh ok
    im tryn to send nfo to autorun and it make it a variable and then have it edit the data and pass it on to another app that last part i can do but stuck at begining

    tha autorun is executed by registry
    and nfo / 1st command parameter is sent also like this

    c:\autorun.exe %1

    in this case %1 = a link

    http://1.1.1.1

    i need it in autorun to edit link to only have ip 1.1.1.1 not http://

    but that part i can do

    hope i explained that proper :confused:

    need help on how to do this or if is even possible
    Last edited by odium; 10-29-2003 at 03:56 PM.

  2. #2
    Join Date
    Oct 2003
    Location
    dallas tx
    Posts
    16
    you can store the information u want to send the menu in a temporary location in the registry, read it from the registry, store it in a variable, manipulate the variable however u want (like removing the http:// part), then send to the app how ever u need it to. autoplay can then delete the registry entry (for future uses).

  3. #3
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    You can also use the Get Delimited String function and use // as the delimiter. Index 1 will give you the URL with the http:// striped off.

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    Re: 1st command parameter or something like that

    Originally posted by odium
    That autorun is executed by registry
    and nfo / 1st command parameter is sent also like this

    c:\autorun.exe %1

    in this case %1 = a link

    http://1.1.1.1

    You first need to be able to process the command line parameter. Use this sample app and DLL to get a feel for that.

    Once you get the command line, do a simple String.Replace on the http://, replace it with "" (the equivalent of nothing), and you'll have your IP address.

    Sample App and DLL

  5. #5
    Join Date
    May 2001
    Posts
    5

    figured that already

    figured that alredy but wuz tryn to avoid that
    problem is that tha reg key is executed by browser link
    wich then runs command key in registry well that command key could make another key but then i would need to use reg.exe and then it wouldnt execute my autorun wich is gunna be used to alter key

    also could make that key execute a bat file tha takes %1 and uses reg.exe to make tha key, then have it also run tha autorun but then tha bat file runs in background and everybody can see commands at work would rather not have that

    unless sombody can tell me how to make registry run 2 commands at once but as far as i know it only runs tha default key in command section
    or make bat file run minimized

    would like to have small of file size as possible without multiple files doing work if i could code in vb or c+ im sure id be done by now

    examples below:

    [HKEY_CLASSES_ROOT\whatever\shell\open\command]
    @="REG ADD HKCR\\whatever\\ /v link /t REG_SZ /f /d %1"

    [HKEY_CLASSES_ROOT\whatever\shell\open\command]
    @="c:\\wutever.bat %1"

    [HKEY_CLASSES_ROOT\whatever\shell\open\command]
    @="c:\\autorun.exe %1"

    :confused: :confused: :confused: :confused: :confused:

  6. #6
    Join Date
    May 2001
    Posts
    5

    ....

    didnt see your post Worm b4 i posted my reply ill check that out and see if it helps thnx
    but if anybody else has any ideas they are still welcome

  7. #7
    Join Date
    May 2001
    Posts
    5

    user interaction

    would like to have no user interaction at all and autorun is not even displayed on screen

  8. #8
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    here's a re-worked sample of the command line dll for AMS.

    I'm not clear on what you're trying to do, but this shows you how to get break down the command line.

    Download

Posting Permissions

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