Sorry for another post, but I think i might more views if I did it this way
OK, my AMS project is designed to copy a bunch of temporary files to a local temp directory, then when its finished, delete the ones it copied.
My question to you is: is there ANY way to get AMS to delete multiple files without making a new delete dialog pop up for each file? That's a bit repetitive..
I have tried editing the delete action's XML by adding <ShowDialog>0</ShowDialog> (or whatever it is, something like that)..
That doesn't work.
I tried using a function from kernel32.dll (DeleteFileA):
%DLLResult% = File.CallDLLFunction ( "%SysDir%\kernel32.dll", "DeleteFileA", ""%file2del%",1,0")
<IR_ACTIONS_LIST>
<Action name="Call DLL Function">
<Type>143</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%SysDir%\kernel32.dll</FileName>
<FunctionName>DeleteFileA</FunctionName>
<FunctionParameters>"%file2del%",1,0</FunctionParameters>
<ReturnType>2</ReturnType>
<CallingConvention>1</CallingConvention>
<Variable>%DLLResult%</Variable>
</Action>
</IR_ACTIONS_LIST>
But all I get out of that is some kind of "Access violation, this program will not terminate" error. (Windows 2000)
(%file2del% is the full path + filename.ext)
Please help, this one's buggin' me! :confused:
I've needed a way around this several times now, but never could get any solid help on the issue.
And if at all possible I'd rather not have to use a batch file...
ty!
P.S. check out my new site layout I'm working on and let me know what you think! http://pixelwise.does.it/ Only the graphics and basic layout are finished so far.. but if you have any suggestions let me know![]()



