hexagon logo

Making a script that will delete the program after it runs

Is it possible to write a script or put a portion of code at the end of a program that will delete that program after it executes?
Parents
  • I think you need to handle that outside of the PC-DMIS process, ie. a .BAS won't do it, but a .VBS might.

    Pseudocode:
    Execute VBS
    The VBS fetches the partprogram filename
    The VBS closes the current partprogram
    The VBS deletes the partprogram (using the partprogram filename fetched earlier)
    VBS closes
Reply
  • I think you need to handle that outside of the PC-DMIS process, ie. a .BAS won't do it, but a .VBS might.

    Pseudocode:
    Execute VBS
    The VBS fetches the partprogram filename
    The VBS closes the current partprogram
    The VBS deletes the partprogram (using the partprogram filename fetched earlier)
    VBS closes
Children
No Data