I need to be able to right click a file and have the filename passed as a variable or a string to clipboard so it is available for use in an associated vbs script that runs from the right click menu.
This is what I need.
Right click a file in an open window or on the desktop, king.txt for example. Select the right click menu item called 'Make folder and name it from filename\clipboard'. The utility then creates a folder with the selected file's name, with out it's extension.
In this case it would create a folder called 'Ken'
This is the batch file version I have been using for a couple of years.
@echo off
attrib -r -s -h %1
set dest="%1"
md "%~n1"
move /-y "%Dest%" "%~n1"
set dest=
I have a registry file to set up the right click menu option.
I cannot find any way to do this using vbs, I not experienced using vbs so I'm going crazy trying to do what I'm sure is a very basic task.
Can you 'Please' help me out.
n4ken