Sign in to follow this  
Followers 0
crest

How to execute files without an extension?

10 posts in this topic

#1 ·  Posted (edited)

Hi,

i want to make my script to automatically connect me to the internet.

To do this, i have to execute/run a Broadband-connection, which is found in "network environment\ network connections"

Since i dont know how to open that one without using lame mouseclicks, i thought i could just make a shortcut to that file and then execute it.

Prob is, that this shortcut-file does not have a file extension :lmao: (at least its not visible)

ive tried this:

Run ("Versatel DDSL", "E:\FSY\Symbotleiste\sl1")

which does not work, since "run" seems to require some file-extension

Autoit says it cant find the file, yet im sure that ive made no typos

How can i solve this prob?

Hope you guys can help me

if you need more infos, feel free to let me know

Edited by crest

Share this post


Link to post
Share on other sites



how about just

_IEcreate("*yourwebadresshere*")


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

ohh ya u need beta


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

thanks for your fast replies :lmao:

lnk kinda worked, yet i get another error-message:

"Error: Unable to execute the external program" :ph34r:

Any suggestions?

Another way would be to activate/run the internetconnection directly from the network connections directory.

Is there any way to do this?

@Dethredic, since im not using ie that wont help :geek:

Share this post


Link to post
Share on other sites

ohh ya u need beta

You need at least the official release 3.2.1 not necessarily beta to run _IE* functions.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

What about using run and @comspec?

Run(@ComSpec&' /c "C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Calculator.lnk"',"",@SW_HIDE)

well using that i can at least run the script without any errors. Doesnt work tho xD

The InternetConnection-Window wont open :geek: actually nothing happens

well i still cant believe, that its that hard to activate a network-connection :lmao::ph34r:

Share this post


Link to post
Share on other sites

I could swear you can use rasdial to establish connections...

Share this post


Link to post
Share on other sites

Hi,

normally the router is that configured that he dials automatically when you are sending a request.

Shortcut:

$lnkShortcutLocation = @DesktopCommonDir & '\Mozilla Firefox.lnk'
If FileExists($lnkShortcutLocation) Then
    Run(@ComSpec & ' /c "' & $lnkShortcutLocation & '"', '', @SW_HIDE)
Else
    MsgBox(16, "error", "File does not exist", 3)
EndIf

What do you have to do manually to start a connection?

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0