Jump to content
Sign in to follow this  
LeeBee

Working Directory

Recommended Posts

LeeBee

Background: I'm a new AutoIt user running 64-bit Vista. I have lots of experience in VB.

I've written a script to rename image files and have created a registry entry for that script so that it appears in the right-click menu for directories. How can I ascertain the path of the directory I'm right-clicking on? VB has the GetAbsolutePathName Method in FileSystemObject. I've searched the help topics and this forum but cannot find an AutoIt equivalent.

Much thanks!

Share this post


Link to post
Share on other sites
Yashied

Background: I'm a new AutoIt user running 64-bit Vista. I have lots of experience in VB.

I've written a script to rename image files and have created a registry entry for that script so that it appears in the right-click menu for directories. How can I ascertain the path of the directory I'm right-clicking on? VB has the GetAbsolutePathName Method in FileSystemObject. I've searched the help topics and this forum but cannot find an AutoIt equivalent.

Much thanks!

An absolute path will be passed to the program as the command line parameter. Use the $CmdLine predefined array for this. That's all.

If $CmdLine[0] > 0 Then
    MsgBox(0, '', $CmdLine[1])
EndIf
Edited by Yashied

Share this post


Link to post
Share on other sites
LeeBee

An absolute path will be passed to the program as the command line parameter. Use the $CmdLine predefined array for this. That's all.

If $CmdLine[0] > 0 Then
    MsgBox(0, '', $CmdLine[1])
EndIf

Share this post


Link to post
Share on other sites
Yashied
LeeBee

Well, DUUUUUUHHH!!! If I would have simply looked at other registry entries that handle directory right-clicks!!

Thanks for the mud on my face! >_<

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.