Jump to content

How to execute files without an extension?


crest
 Share

Recommended Posts

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
Link to comment
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:

Link to comment
Share on other sites

  • Moderators

ohh ya u need beta

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

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.

Link to comment
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)
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
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:

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...