Quick Question. . .
Using LaunchApplicationPlugin. . .
When I execute the following .bat
@echo off
GOTO EndComment
11.25.09 Mike Praeuner (
www.strm.us)
Purpose: Execute this file, to create an array of images for a folder,
to use inside TW
Source:
http://www.dynamicdrive.com/forums/archive/index.php/t-13488.html
:EndComment
if '%1'=='w' (
echo array_home[%i%]='%2'; >> array_home.js
rem echo array_home[%i%]='images/%2'; >> array_home.js
set /a i=i+1
) else (
echo array_home=[]; > array_home.js
set /a i=0
for %%p in (*.jpg, *.gif, *.png) do (
call array_home.bat w %%p
)
set i
set i=
)
On my thumb drive @ ?:\Private\Documents\tw\images\home
It places the output (array_home.js) in the same folder, when I
execute via LaunchApplicationPlugin it place the file on the root of ?:
\ and then does not properly fill in the array. Is this a problem
with the .bat? (I am not a batch file expert)
Thank You,
Mike