create user tool to run dos command 'mkdir'?

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

create user tool to run dos command 'mkdir'?

Postby Wow_Zow » Fri Jul 11, 2008 11:02 am

Hi ultraeditors --

Im trying to create a very simple user tool that will run a dos "mkdir" command for me. I'd like to use it with a path I have already built and sitting in ultraedit's clipboard 4 ("c:this/that/here/there/yadda")....

...however, I can't quite finger out how to paste or send the clipboard's contents to the user tool immediately after the "mkdir" command. I doubt there is a dos command/shortcut that will "paste" is there?

Any suggestions on how to accomplish this relatively simple task of making a directory? Or if my whole approach is wrong, alternative ways to generate a directory on the fly from UE or the user tool?

Im using v13.20, so Im a bit back on the upgrade curve, if that matters.

tnx much all,
WZ
User avatar
Wow_Zow
Basic User
Basic User
 
Posts: 11
Joined: Tue Jan 30, 2007 12:00 am

Re: create user tool to run dos command 'mkdir'?

Postby pietzcker » Fri Jul 11, 2008 11:56 am

Hi,

have you read the UE help file "DOS command"? Especially the bit about the parameter %sel%? I guess that's what you need...

HTH,
Tim
User avatar
pietzcker
Master
Master
 
Posts: 241
Joined: Sun Aug 22, 2004 11:00 pm

Re: create user tool to run dos command 'mkdir'?

Postby Wow_Zow » Fri Jul 11, 2008 12:31 pm

thanks. read that already, several times over.

Would you care to ref the section of the help file that allows me to insert text to the dos command directly from the clipboard, especially clipboard #4-- not the main windows cb-- instead of from an active selection?

tnx
User avatar
Wow_Zow
Basic User
Basic User
 
Posts: 11
Joined: Tue Jan 30, 2007 12:00 am

Re: create user tool to run dos command 'mkdir'?

Postby Bego » Fri Jul 11, 2008 12:59 pm

AFAIK its only possible with %sel%
But you can write (or better: RECORD) a macro where you:
create new file
switch to clipboard 4
paste text
copy (select) it
close file nosave
runTool
switch to clipboard 1 again

easy.
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany

Re: create user tool to run dos command 'mkdir'?

Postby Wow_Zow » Fri Jul 11, 2008 2:03 pm

tnx. I got the "mkdir %sel%" command working pretty easily already, but I was hoping there was a "^c" like command (or similar) for dos, to snag clipboard text.

thanks much bego & pietz.
User avatar
Wow_Zow
Basic User
Basic User
 
Posts: 11
Joined: Tue Jan 30, 2007 12:00 am


Return to Custom User Tools/Tool Configuration