Okay, so I'm learning js as I build desklets maybe not the best but, I also see a number of functions that can be carried out within the regular xml file. So, I truly understand the power of it even more and must extend my thanks again. Now for the question.
The SDK documents the use of command lines well. The question is does it override the systems autorun settings & default to the AveDesk/AveScripter directory?
Running the code below defaults to the specific desklet folder then only requires syntax to subfolder. Is this the default?
I realize this needs to be addressed in my script either way as some people probably override the autron to default drive, Just need to know the starting point as I can eliminate calling the shell run object.
/* Create WSH Shell */
oShell = WScript.CreateObject( "WScript.Shell" );
/* run command line program followed by parameters */
/* Launch a command shell "/C" <- close cmd window */
/* Launch a command shell "/K" <- shows cmd window */
/* Specify 0 to keep window hidden 1 for open */
/* If command line autorun is overridden to */
/* default to home drive then code won't work */
/* Archive Type 7z with maximum compression */
oShell.Run( "%COMSPEC% /c program7z.exe a -t7z -r program.7z program/* -mx9 ",0 );
Aqua-Soft Forums