Re: Copy Pathname Script?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Mad Ad (with_at_heynonnynonny.com)
Date: 01/25/05


Date: Tue, 25 Jan 2005 12:38:56 GMT

Fantastic - Torgeir, McKirahan, Miyahn and mayayana, thank you all for the
input, I was not expecting such a useful response.

I have had a play about with them and got them all working - but just as
mayayana says, they wont run using those registry keys, it seems no vbs or
hta files can be executed via the context menu like that, it just throws out
an error "there is no file extension in F:\Script" when in fact the pathname
is F:\Script Test\Test Files (and yes I have tried encapsulating the path in
"" )

Seems the only way to make it run is to build it into an exe - and im so
stupid I dont know how to do that- not great considering ive many years
experience beating computer hardware into compliance.

For some reason I just dont 'get' programming, well, I do a bit, I can make
huge cascading C script files or re-write gui scripts for games from Valve
or ID, all thats easy, I can even hack bits out of the registry or make a
few dos batch files if im pushed (woohoo!), I know what are variables
strings if then for next and a whole lot more, hell I can even get a 6502 to
print HELLO WORLD but when it comes to actually learning how to make a box
with some buttons doing windows things, im stuck - dead in the water and
come to places like this, cap in hand, to see what I can learn my way.

Ive even thought about paying for a course but it frustrates me that for all
this time in hardware that im such a loser when it comes to this, Ive tried
following various tutorials on the web but even tho it might go in, I always
get to the 'and now what?' stage and always seem to be missing vital bits of
the picture (or not the right tools) to be able to actually make anything of
use myself.

Anyway, forgive the frustrated ramblings of an old man, I'll just post for
various pointers here and there, at least im learning something :-) .
Thanks again

Ad

"mayayana" <mayaXXyana1a@mindYYspring.com> wrote in message
news:T8xDd.178$KJ2.164@newsread3.news.atl.earthlink.net...
> You can create a menu item for any file in the
> following key:
>
> HKCR\*\shell\PastePath\
>
> Default value to show on right-click menu:
> "Send Path To Clipboard"
>
> HKCR\*\shell\PastePath\Command\
> default value: YourProgramPath %1
>
> [The above is the method used to add
> "Open with Notepad" for all files. The
> HKCR\*\shell part is required. The "PastePath"
> key name can have any name you like, but
> it's default value should be the menu text.
>
> %1 runs the program specified. So any program
> that checks for command line arguments when
> it starts up can handle this approach. ]
>
> You can do the same for folders under
> the HKCR\folder\shell\ or HKCR\directory\shell\
> key.
>
> Once you have the menu, the path will be sent
> to the specified program and the program can
> then send the path to the Clipboard. I'm not sure
> whether that will work for a script. It may work
> if you use: wscript.exe scriptpath %1
> or you may need to have an EXE to do it.
> --
> _____________________________
>
> mayayXXana1a@mindYYspring.com
> For return email remove XX and YY.
> _____________________________
> Mad Ad <com@comcomcom.com> wrote in message
> news:8QtDd.185$7D2.144@newsfe6-gui.ntli.net...
> > There seems to be several small utilities out there that add a
right-click
> > context menu entry to windows allowing you to dump the full path of
> whatever
> > you have right-clicked to the clipboard. Has anyone heard of that?
Would
> > that be within the capabilities of a simple wsh script? Im assuming its
> > quite simple to do because there are a few of them out there.
> >
> > Now I'm someone not very experienced at scripting so please don't shoot
me
> > if I'm asking the wrong thing, just ive got an idea for something that
> > perhaps I could adapt using that function, if I knew it as a script.
> > Something I could make sense of and tinker with as I learn how to bolt
on
> > the bits I want to add, just I don't know if its open source or a
> > programming example somewhere and I'm hoping someone here knows what I'm
> > going on about :)
> >
> > Thanks for any help
> >
> > Ad
> >
> >
>
>


Quantcast