MSFN Forum: Regarding Autoit "run" command. - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Regarding Autoit "run" command. Rate Topic: -----

#1 User is offline   Dumpy Dooby 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 424
  • Joined: 16-May 05

Posted 19 May 2005 - 09:11 PM

Why doesn't this work:
Run  	( "%programfiles%\FlashFXP\Flashfxp.exe", "%programfiles\Flashfxp\", "" )


When I try that, it says "Cannot find 'd:\program files\flashfxp\flashfxp.exe'"

Yes, my program files directory is on drive d: and yes, if I click start->run and type "%programfiles%\FlashFXP\Flashfxp.exe," it works just fine.

It also works just fine if I click start->run and type "d:\program files\flashfxp\flashfxp.exe."

What gives?

Any way that I could do this using @ComSpec?

I'm using AutoIt v3, btw.


PS-
I'm currently using the following
Send 	 ("#r")
ControlClick	( "Run","","edit1","","2" )
Send 	 ("%programfiles%\FlashFXP\flashfxp.exe{Enter}")


But I've had some problems with that one if my computer is running slow. Besides, that won't exactly work on my unattended xp disc as there is no start button during the XP install.


#2 User is offline   kyuuzo 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 26-August 04

Posted 19 May 2005 - 09:50 PM

Try adding this to your script.

AutoItSetOption("ExpandEnvStrings",1)


#3 User is offline   Dumpy Dooby 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 424
  • Joined: 16-May 05

Posted 19 May 2005 - 10:33 PM

Nah, that didn't help at all...

Anyone know how to do this using the @programfilesdir macro?

I tried
Run ( "" & @ProgramFilesDir & '\FlashFXP\flashfxp.exe""' & "", "" )

didn't work.
Then I tried.
Run (@ProgramFilesDir & "\FlashFXP\flashfxp.exe", "")

didn't work.

#4 User is offline   pacav69 

  • Group: Members
  • Posts: 3
  • Joined: 14-March 07

Posted 11 May 2009 - 09:35 AM

try using ShellExecute($wDir&"filename.exe","open", @SW_MAXIMIZE)

#5 User is offline   Dougal4263 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 09-March 05

Posted 12 May 2009 - 08:37 AM

Try this


Quote

RunWait ( @ComSpec & ' /k "%programfiles%\FlashFXP\Flashfxp.exe"', '"%programfiles%\Flashfxp\"' )


This will close the dos window when finished

Quote

RunWait ( @ComSpec & ' /c "%programfiles%\FlashFXP\Flashfxp.exe"', '"%programfiles%\Flashfxp\"' )


This will hide and close the dos window when finished

Quote

RunWait ( @ComSpec & ' /c "%programfiles%\FlashFXP\Flashfxp.exe"', '"%programfiles%\Flashfxp\"', @SW_HIDE )


Hope this helps (and works), having to do this from memory as i'm not at my pc at the moment!!


edit:
(Why do my code boxes take up half the page??? :} )
Fixed!

This post has been edited by Yzöwl: 12 May 2009 - 10:39 AM


#6 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 13 May 2009 - 11:58 AM

try this
Run (@ProgramFilesDir&"\FlashFXP\Flashfxp.exe")


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy