I would like to use WB to determine what directory the user has already selected in Windows Explorer and then make the directory a favorite or make a shortcut of the directory that I can place into another directory.

You will need to explain a little more clearly what you are attempting to do. Hopefully, you don't want to add a folder to favorites every time a user selects one in an Explorer window. That could quickly render the Favorites folder useless. Not to mention making for an unhappy user. So what is going to trigger adding a 'selected' folder to favorites?

Logged

"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight." - Dr. Tom Cade

Very interesting. Resisting the temptation to ask a bunch of annoying questions, you may be able to get the selected file using the Control Manager Extender. The cGetLvSelText extender function has a maybe dated example in the Consolidated WIL Help file that demonstrates extracting the selected item from an Explorer Window.

The RoboScripter tool that is part of your WinBatch distribution can also be used to help automate the writing of a Control Manager scripts.

Logged

"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight." - Dr. Tom Cade