Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make a function delete itself + somethin else
#1
HI everyone

i was wondering what is the code for a function to delete itself
like i am making a validation where it uses mkdir

and i want it 2 only do it once

is there a way 2 make it delete itself?


also one more question
on vista when i try to get it to mkdir a folder in program files it says access denied
is there a way to make it do it without that?

Thanks very much
#2

This will make a function delete itself:

Code:
Copy      Help
newitem getopt(itemid) "" "" "" "" 32
Taking on Quick Macros one day at a time
#3
Quote:on vista when i try to get it to mkdir a folder in program files it says access denied

QM must be running as administrator. Set it in Options / General. Or the macro must be running in separate process as administrator. Set it in macro Properties dialog.
#4
ty on the function thing

now what exactly do u mean about making a function running as an admin without making all of QM run as admin


tyvm
#5
in Properties dialog, Function properties tab, check 'run in separate process' and select 'administrator'.

But better let QM run as administrator. Will have less problems with Vista security features.


Forum Jump:


Users browsing this thread: 1 Guest(s)