Jump to content

curent name folder


 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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))

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.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...