itbabe
asked on
Vbscript : Can FSO.GetBaseName return a foldername ?
I would like to use the foldername of a folder of which the contextmenu is clicked to be used as a variable in the script that is called by clicking on the item in the contextmenu. Can this be done with FSO.GetBaseName ?
ASKER
I just wanted the foldername returned when an item was clicked in the contextmenu.
I did it the following way, it works
Dim arg, fso, shell, Oldfoldername
Set fso = CreateObject("Scripting.Fi leSystemOb ject")
Set shell = CreateObject("WScript.Shel l")
arg = WScript.Arguments(0)
Oldfoldername=fso.GetBaseN ame(arg)
I did it the following way, it works
Dim arg, fso, shell, Oldfoldername
Set fso = CreateObject("Scripting.Fi
Set shell = CreateObject("WScript.Shel
arg = WScript.Arguments(0)
Oldfoldername=fso.GetBaseN
ASKER
request to close question
https://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/newQuestionWizard.jsp
https://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/newQuestionWizard.jsp
ASKER
wrong link, this is the correct one
https://www.experts-exchange.com/questions/22468547/please-close-question-I-found-the-answer-myself.html
https://www.experts-exchange.com/questions/22468547/please-close-question-I-found-the-answer-myself.html
Can you post the solution?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Guess I still don't understand what you're after with this - but to the closing moderator - I have no problems with the closure, and since I'm the only other one involved - no reason for the 4-day wait... :^)
Glad you got it working..
Glad you got it working..
I'm not sure I understand exactly what you're trying to accomplish.
Could you, perhaps, post a code snippet (I'm a visual-guy ;)