Jump to content
Sign in to follow this  

Quick Question

Recommended Posts

I'll just give an example of what i want to do since its hard to phrase the quesiton...

Self Extracting Zip File (SEZF.exe) is located wherever the person downloaded it to.

Ok, i made an installer to install all my scripts, so the self extracting zip file (SEZF.exe) extracts all the stuff to

Wherever it was downloaded /goods

When they run the SEZF it will extract my scripts and i want the scripts to delete the SEZF.exe so its a clean install, but i can't because they could have downloaded the SEZF anywhere. which means Delete (C:/Install/Whatever/SEZF.exe) will only work if they downloaded it to that exact spot (which is not likely)

Since the SEZF.exe is always ONE FOLDER above the scripts that will delete it is there a commands to go up one level?


FileDelete (UpOneLevel/SEZF.exe)

Is that possible? Can someone tell me a way to do that?

Thanks! :ph34r:

Share this post

Link to post
Share on other sites

FileDelete ("../SEZF.exe")

In DOS (and UNIX/Linux) using ".." means up a directory. And "." is the current directory.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post

Link to post
Share on other sites

Your the man pekster! Thanks! :ph34r:

edit: oops, one more question... say they chose to extract the SEZF to a custom location?

Is it possible to tell AutoIt to search for a program and then delete it??

its not big deal, just wondering though!

Edited by Shatner3

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...