View Full Version : 1st command parameter or somth'n like that
odium
10-29-2003, 04:41 PM
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
dallasfreak2
10-29-2003, 07:30 PM
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).
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.
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 (http://www.warmuskerken.com/ams/commandline.zip)
odium
10-29-2003, 08:20 PM
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:
odium
10-29-2003, 08:24 PM
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
odium
10-29-2003, 08:45 PM
would like to have no user interaction at all and autorun is not even displayed on screen
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 (http://www.warmuskerken.com/ams/odium.zip)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.