Jump to content











Photo

Using of Exec


  • Please log in to reply
1 reply to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 15 September 2006 - 03:40 PM

The "Clean Target before Build" issue now is running using Exec.

The project's GUI contains a checkmark whether the user wants to clean.
[attachment=328:attachment]
The value of the checkbox is represented by the variable %pCheckBox1% which cannot be read from external scripts.

Solution: script.projects gets some code:
[ClearTarget]

If,ExistDir,"%TargetDir%",Echo,"Deleting [%targetdir%]"

If,ExistDir,"%TargetDir%",DirDelete,"%TargetDir%"

If,ExistDir,"%TargetDir%",Exit,"%TargetDir% could not be deleted!"



[Check-Clear]

If,%pCheckBox1%,Equal,True,Run,%ScriptFile%,ClearTarget
And in MakeDirs.Script there is just an
Exec,"%ProjectDir%\script.project",Check-Clear

Peter

#2 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 15 September 2006 - 04:22 PM

I think that such information should be in the wiki. Thanks for the documentation




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users