Page 1 of 1
Command to open current active folder w a specific program?
Posted: 15 Mar 2010 22:56
by TsunamiZ
Anyone know how to create a command to open selected file(s) with a specific program? I also want to create a hotkey for it. Anyone know the procedure and script code? Thanks.
BTW: Is there also a variation for opening current active folder with a specific program?
Re: Command to open selected file(s) with a specific program?
Posted: 15 Mar 2010 23:07
by Stefan
TsunamiZ wrote:Anyone know how to create a command to open selected file(s) with a specific program? I also want to create a hotkey for it. Anyone know the procedure and script code? Thanks.
http://88.191.26.34/XYwiki/index.php/Us ... d_Commands
http://88.191.26.34/XYwiki/index.php/Sc ... :_openwith
http://www.xyplorer.com/xyfc/viewtopic. ... 914#p39914
BTW: Is there also a variation for opening selected folder with a specific program?
<curitem> works for selected folder too, see
http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=4420
Or use <curfolder> as parameter for your program.
<curfolder> will be the name of the current folder
http://88.191.26.34/XYwiki/index.php/Us ... r_New_Name
Re: Command to open selected file(s) with a specific program?
Posted: 15 Mar 2010 23:59
by TsunamiZ
thanks but can you give me an example of the script to use? for example...
i want to make it open selected file(s) with...
C:\Program Files (x86)\Adobe\Adobe Photoshop CS4\Photoshop.exe
i want to make it open current active folder with...
C:\Program Files (x86)\XnView\xnview.exe
Re: Command to open selected file(s) with a specific program?
Posted: 16 Mar 2010 07:56
by TsunamiZ
ok i figured everything out except for this one. anyone know how to do this?
i want to make it open current active folder with...
C:\Program Files (x86)\XnView\xnview.exe
note: i want to open current "active" folder, not currect "selected" folder.
Re: Command to open current active folder w a specific program?
Posted: 16 Mar 2010 08:28
by TsunamiZ
i tried this, but it doesn't always work. anyone know what's wrong?
Code: Select all
openwith "C:\Program Files (x86)\XnView\xnview.exe" <curpath>
Re: Command to open current active folder w a specific program?
Posted: 16 Mar 2010 09:29
by Stefan
1) please find examples how to use behind my links above
or
http://www.xyplorer.com/xyfc/viewtopic. ... 796#p40796
or
http://www.xyplorer.com/xyfc/viewtopic. ... 663#p28663
2) correct command depends on your programs syntax - > read XnView help, maybe there is an parameter needed? like xnview /D ""<curpath>""
3) mostly it's all about quoting .... maybe your <curpath> has blanks? >
http://www.xyplorer.com/xyfc/viewtopic. ... 846#p40846
If that doesn't help we will see what to do next.
Re: Command to open current active folder w a specific program?
Posted: 16 Mar 2010 10:50
by TsunamiZ
ok this works, thanks
openwith "C:\Program Files (x86)\XnView\xnview.exe" "<curpath>"