Thanks for all your replies to my plea for help.
Bruce, I have tried your approach, but in my first attempt at 
scripting I am getting it round my ears.

My PproShutdown script (Saveprogs.powerpro) is as follows:
local handle,i,vector1,windows
windows=win.handlelist("*",0)
vector1=vec.create(20,10)
for(i=1;1;i=i+1)
handle=word(windows,i)
if (handle=="")
break
vec.bininsert(vector1,win.exepath(handle))
endfor
file.writeall("C:\Utilities\PowerPro\Scripts\Path.txt",vec.makelines
(vector1))

For reasons which I do not understand this creates a file called 
UtilitiesPowerProScriptsPath.txt on my desktop! However, the contents 
look reasonable.

My Startup Scheduler script (Loadprogs.powerpro) goes like this:
local fp,i,exe
fp=file.open("C:\Utilities\PowerPro\Scripts\Path.txt","r")
for(i=1;1;i=i+1)
exe=file.readline(fp)
if (exe=="")
break
do (exe)
endfor
file.close(fp)

This stops with a message 
Error running command (2). File not found
C:\Program Files\Windows NT\Accessories\WORDPAD.EXE
(followed by a blank line)
Wordpad is the first line in Path.txt, but in the debug window there 
is an unprintable character following the path (which is probably 
what creates the blank line and the error message if it's added onto 
the filename) and there is a number 100 on the next line.
In exchange for the entertainment value provided by my poor logic, I 
would be grateful if you could straighten me out. Many thanks.








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to