Jump to content

relative paths


Hans
 Share

Recommended Posts

Greetings

I am new to the community and to autoit.

All I want to do is to get a neat script which does the same as

the following batch file:

~~~~~~~~~

@Echo Off

"FrameDem.exe" "Nis David\index.html"

~~~~~~~

The batch file is working, however, I can't get autoit running

the same app with parameters.

What for? one could ask. To get batch files run silently,

you have to add the pif-shortcut and this slows down

the startup procedure considerably.

Any hints?

Hans

Link to comment
Share on other sites

You probably need to enclose your parameters in " and might also need to specify a apropriate path to run in?

$workingdir = "c:\path to my tool" ; If your tools needs this specified 
Run('command.exe' & ' "My cmd parameter has spaces" "And this is the second" ',  $workingdir)

EDIT: Typo

Edited by Uten
Link to comment
Share on other sites

Welcome Hans

You could use the @ScriptDir macro to execute the file from the scripts directory

Run('"' & @ScriptDir & '\FrameDem.exe" "Nis David\index.html"', @ScriptDir)
oÝ÷ Úî±æ«zV­÷©jØZ³*.éíðØQºp ¢i¢XÊ+-¡È^rKa{
+)àv*ÞrÚ+É·¢·®²)à­éZ¶+Þ¥«a±«­¢+Ø(졬ݽɭ¥¹¥ÉѽÉ乡¹¥¹)%]½É­¥¹¥È±ÐìÐìMÉ¥ÁÑ¥ÈQ¡¸(%¥±
¡¹¥È¡MÉ¥ÁѥȤ)¹%()IÕ¸ Ìäíɵ´¹áÅÕ½Ðí9¥ÌÙ¥ÀäÈí¥¹à¹¡Ñµ°ÅÕ½ÐìÌäì¤(
Link to comment
Share on other sites

Thanks very much to all!

This seems to be an extraordinary vivid forum.

Now I found two examples working.

Run('"' & @ScriptDir & '\FrameDem.exe" "Nis David\index.html"', @ScriptDir)

and

Run('"' & @ScriptDir & '\FrameDem.exe" "Nis David\index.html"','',@SW_HIDE)

The syntax of quotation marks and commas is a little bit tricky.

Is there a tutorial bearing on that?

Hans

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...