Jump to content

Recommended Posts

Posted

How do I start firefox from an AutoIt program ?

this does not work:
Run('C:"Program Files (x86)Mozilla Firefox"firefox.exe <URL here>', '', @SW_HIDE)

error is:
'C:Program' is not recognized as an internal or external command,
operable program or batch file.

Am I struggling with the ' " ?

I also tried to use  %ProgramFiles(x86)% , same result

This works, but I don't like it:

Run(@ComSpec & " /c " & 'a.bat', '', @SW_HIDE)

with a one line a.bat:

C:Program Files (x86)Mozilla Firefoxfirefox.exe <URL here>

Am I struggling with the ' " ?

Please Help !

Posted

actually, this one works even without the double-quotes, but in general: enclose the entire path inside the double-quotes, like this:

Run('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" www.google.com')

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Posted (edited)

i recently noticed that the double quotes are not necessary anymore. obviously autoit internally uses the dos 8.3 pathnames automatically now.

(sorry mods, if this is wrong)

Edited by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

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
  • Recently Browsing   0 members

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