Shatner3 Posted August 7, 2004 Posted August 7, 2004 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? Example: FileDelete (UpOneLevel/SEZF.exe) Is that possible? Can someone tell me a way to do that? Thanks!
pekster Posted August 8, 2004 Posted August 8, 2004 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.
Shatner3 Posted August 8, 2004 Author Posted August 8, 2004 (edited) Your the man pekster! Thanks! 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 August 8, 2004 by Shatner3
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now