Sign in to follow this  
Followers 0
keyser

curent name folder

3 posts in this topic

Hello all,

I'm french guy so excuse my english, :dance:

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 :whistle:

bye

Keyser

Share this post


Link to post
Share on other sites



Hello all,

I'm french guy so excuse my english, :dance:

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 :whistle:

bye

Keyser

<{POST_SNAPBACK}>

$CurDir = StringTrimLeft(@ScriptDir,StringInStr(@ScriptDir,"\",0,-1))

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks very much :whistle:

I can now continue

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  
Followers 0