keyser Posted August 14, 2005 Posted August 14, 2005 Hello all, I'm french guy so excuse my english, i'm novice with autoit but this is very cool Actualy i search to make a script for make a installer which copy curent folder to program files folder and make shortcut But i don't want to fix name folder because same installer should be ok in many folder Exemple i am in a folder c:\temp\program1\ an i lauch my script i want to have the name of the dir in my script so "program1" i try with @workingdir or with @ScriptDir but the two variable containt the full path of the folder "c:\temp\program1\" so my question to continue my script is anybody konw a variable to have the foldername only and if someone have made a script similar, maybe can he help me bye Keyser
Developers Jos Posted August 14, 2005 Developers Posted August 14, 2005 Hello all,I'm french guy so excuse my english, i'm novice with autoit but this is very coolActualy i search to make a script for make a installer which copy curent folder to program files folder and make shortcutBut i don't want to fix name folder because same installer should be ok in many folderExemplei am in a folder c:\temp\program1\an i lauch my scripti want to have the name of the dir in my script so "program1"i try with @workingdir or with @ScriptDirbut the two variable containt the full path of the folder "c:\temp\program1\"so my question to continue my script is anybody konw a variable to have the foldername onlyand if someone have made a script similar, maybe can he help me byeKeyser<{POST_SNAPBACK}>$CurDir = StringTrimLeft(@ScriptDir,StringInStr(@ScriptDir,"\",0,-1)) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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