Jump to content
FHannes

SCAR Divi 3.37.02 Final

Recommended Posts

Freddy has written a plugin to provide this functionality:

http://svn.scar-divi.com/scar_shellutils/

 

It implements the following functions:

[sCAR]procedure Run(const Path: AnsiString);

procedure RunEx(const Path, Params: AnsiString);

function DeleteFile(const Path: AnsiString): Boolean;[/sCAR]

 

Place the ShellUtils.dll in your SCAR Libraries folder, then you can do something like this:

 

[sCAR]program New;

 

{$L ShellUtils.dll}

 

begin

Run('notepad.exe');

end.[/sCAR]

Link to comment
Share on other sites

Hey Freddy,

 

can you write a run function like in AutoIt ? for example: Run(notepad.exe);

 

I can and I have, but it's not included in SCAR for security reasons. You can get it in library form and include it with your script. http://svn.scar-divi.com/scar_shellutils/bin/ShellUtils.dll

The functions are named Run and RunEx.

 

EDIT: Bixby wins this round :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...