| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Oct 12, 2005 10:35 pm Post subject: Need retrieve Execution file from ISP Connection ShortCut |
|
|
Need retrieve the execution file from my ISP Connection desktop ShortCut
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Hi
Does anyone know how to retrieve the original EXE or RUN file of the Internet Connection Desktop Link .lnk file.
I've tryed with no success..
I need to be able to lauch my ISP dialup with my VDS program in order to re-enable my McAfee Virus scanner, I like it disabled when offline(my McAfee disabler prevents all those offline spammy popups from McAfee and helps PC run better offline).
Thanks in advance  |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Oct 12, 2005 10:48 pm Post subject: |
|
|
oh, I don't need the actual file itself, I just need its path and filename to be able to execute it from VDS with RUN or SHELL OPEN  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Oct 13, 2005 2:59 am Post subject: |
|
|
This way works pretty easily in VDS 5.. just change the %%ConnectionName variable to whatever you named your connection.
If you don't know what you actually named it, you can find it under "Network Connections" in XP or "Dial-up Networking" in 9x.
| Code: |
LOADLIB Wininet.dll
%%ConnectionName = "<Connection Name Here>"
REM Pop up the connection dialog:
%%INTERNET_DIAL_FORCE_PROMPT = $02000
REM Dial without waiting on the user:
%%INTERNET_DIAL_UNATTENDED = $08000
%a = " "
%p = @LIB(wininet,InternetDialA,INT:,0,%%ConnectionName,%%INTERNET_DIAL_UNATTENDED,@ADDR("%a"),0)
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Oct 13, 2005 6:42 am Post subject: |
|
|
it only worked one time for some reason
Heres what I tried: (is this correct?)
| Code: | :connectBUTTON
LOADLIB Wininet.dll
%%ConnectionName = "snail"
%%INTERNET_DIAL_FORCE_PROMPT = $02000
%%INTERNET_DIAL_UNATTENDED = $08000
%a = " "
%p = @LIB(wininet,InternetDialA,INT:,0,%%ConnectionName,%%INTERNET_DIAL_UNATTENDED,@ADDR("%a"),0)
goto evloop |
Last edited by vtol on Thu Oct 13, 2005 7:22 am; edited 1 time in total |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Oct 13, 2005 6:52 am Post subject: |
|
|
I tried it like this but I did'nt know where to put the force variable
| Code: | :connectBUTTON
LOADLIB Wininet.dll
%%INTERNET_DIAL_FORCE_PROMPT = $02000
%a = " "
%p = @LIB(wininet,InternetDialA,INT:,0,snail,$08000,@ADDR("%a"),0)
goto evloop |
Last edited by vtol on Thu Oct 13, 2005 7:21 am; edited 1 time in total |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Oct 13, 2005 7:20 am Post subject: |
|
|
Heres the last way I tried it, no luck
| Code: | :connectBUTTON
LOADLIB Wininet.dll
%%ConnectionName = snail
%%INTERNET_DIAL_FORCE_PROMPT = $02000
%%INTERNET_DIAL_UNATTENDED = $08000
%a = " "
%p = @LIB(wininet,InternetDialA,INT:,0,%%ConnectionName,%%INTERNET_DIAL_UNATTENDED,@ADDR("%a"),0)
goto evloop | I have 2 connections by the way, snail is my default, and the other is a spammy freebee one, would that effect it
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Oct 13, 2005 8:19 am Post subject: |
|
|
Some reason this way seems to work everytime after a few reboots of trial and error, I like to manual dial anyways
Well this seems a little better than my DOS way(it flickered a bit).
I'm using XP pro SP2 full version - seems like things would be easier .
| Code: | :connectBUTTON
LOADLIB Wininet.dll
%%ConnectionName = snail
%%INTERNET_DIAL_FORCE_PROMPT = $02000
%%INTERNET_DIAL_UNATTENDED = 0
%a = " "
%p = @LIB(wininet,InternetDialA,INT:,0,%%ConnectionName,%%INTERNET_DIAL_UNATTENDED,@ADDR("%a"),0)
goto evloop |
It may have been because I renamed my connection to snail while installing this code - I don't know for sure
But any ways, thanks again SnarlingSheep, I was really stumped till you saved the day
If you could write a book of all your VDS knowledge, it would sell  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Oct 13, 2005 4:38 pm Post subject: |
|
|
Not sure why ya had a problem, but I should have mentioned that I put INTERNET_DIAL_FORCE_PROMPT in there just in case you didn't want it to automatically start dialing without you hitting "Connect." _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Oct 17, 2005 8:26 am Post subject: |
|
|
I think it was because I had my Connector set at:
Me Only
I changed it to:
Anyone who uses this computer
That might have been the problem, not sure
Question:
Is they way I have the force dial parameter set at zero ok?
%%INTERNET_DIAL_UNATTENDED = 0
I just kinda tryed zero and it seems to work  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Mon Oct 17, 2005 4:54 pm Post subject: |
|
|
Setting it to 0 will just make it use the default option, which I believe acts the same way as when you click your internet shortcut yourself.. If that's what you want, then its fine.
If you'd rather it just went ahead and dialed when you ran your script, you can set it back to $08000. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
|