catalog item: launch in current list directory

Features wanted...
Post Reply
carmenm

catalog item: launch in current list directory

Post by carmenm »

Hi,

Sitting here in front of XYplorer and spending hours fighting with TortoiseSVN, i thought about something that would be great.

I think it would really be great to be able to launch a catalog item in the current dir.
The best way to explain it is to give an example.
When i want to do a svn update, i have to go up one dir, select the dir i want to update, do a right click, wait a few earth cycles... then choose svn update.
What would really much simpler is add a svn update(command line) in the catalog and when i click on it, it s launched in the current dir...

WHat do you think?

EDIT: Just thought, may be i can do that with script?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: catalog item: launch in current list directory

Post by TheQwerty »

carmenm wrote:EDIT: Just thought, may be i can do that with script?
This should do it for you (assuming you have svn in your path):

Code: Select all

::Run('"svn" update');

carmenm

Re: catalog item: launch in current list directory

Post by carmenm »

I tried it with the try script. But the console opening close too quick and i dont know if it works.
any idea on how to have a better look at the output ?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: catalog item: launch in current list directory

Post by TheQwerty »

Well, you could execute the svn update in a command prompt and do something like:

Code: Select all

::Run('"cmd" /K svn update');
Or a step further so that you can just hit a key to close that command prompt:

Code: Select all

::Run('"cmd" /K svn update && pause && exit');

carmenm

Re: catalog item: launch in current list directory

Post by carmenm »

It helps a lot, i know see that it works!.

Yet now i am looking at another approach. In a script is there a way to get the current dir path?

Thanks

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: catalog item: launch in current list directory

Post by Muroph »

carmenm wrote:Yet now i am looking at another approach. In a script is there a way to get the current dir path?
<curpath> :wink:
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: catalog item: launch in current list directory

Post by TheQwerty »

You may be interested in this script: http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=3801
Though from the sounds of it you may be well on your way to generating something similar on your own. :)

carmenm

Re: catalog item: launch in current list directory

Post by carmenm »

Thank you so much !
This is exactly what i need to start doing my script
:D

Post Reply