Page 1 of 1

catalog item: launch in current list directory

Posted: 01 Jul 2009 10:48
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?

Re: catalog item: launch in current list directory

Posted: 01 Jul 2009 13:25
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');

Re: catalog item: launch in current list directory

Posted: 01 Jul 2009 17:14
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 ?

Re: catalog item: launch in current list directory

Posted: 01 Jul 2009 17:25
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');

Re: catalog item: launch in current list directory

Posted: 02 Jul 2009 11:41
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

Re: catalog item: launch in current list directory

Posted: 02 Jul 2009 13:45
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:

Re: catalog item: launch in current list directory

Posted: 02 Jul 2009 14:48
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. :)

Re: catalog item: launch in current list directory

Posted: 02 Jul 2009 15:16
by carmenm
Thank you so much !
This is exactly what i need to start doing my script
:D