New functionality proposal: windows runtime-object in script environment

Advanced Renamer forum
#1 : 09/04-13 20:43
NomenEtOmen
NomenEtOmen
Posts: 29
hi,

i would really apprechiate to offer a windows runtime object (windows cmd or windows powershell) in the script environment. this would enable the create useful scripts like automated picture-resizing or in general all cmd-based actions. For this actions i actually wrote single scripts, the integration in aren would collect all scripts in one program with the plus of windows explorer integration and the file object selection.

thx a lot for your useful program


09/04-13 20:43
#2 : 10/04-13 08:13
Stefan
Stefan
Posts: 274
Reply to #1:

I would have answered use

var wsh = new ActiveXObject("WScript.Shell");
wsh.run("notepad.exe", 1, True);


but it seems this doesn't works from within AdvancedRenamer? Kim?


10/04-13 08:13
#3 : 10/04-13 10:33
Kim Jensen
Kim Jensen
Administrator
Posts: 880
Reply to #1:
The beautiful thing about the current script implementation is that everything is handled from within the script sandbox. There are no way to jump out of this narrow sandbox. When opening up for running more complex scripts and interact with the system environment, you also open up for serious security problems. I really don't want Advanced Renamer to be a multi purpose batch processing tool. That is the subject of another program.


10/04-13 10:33