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?
Command to open current active folder w a specific program?
-
TsunamiZ
- Posts: 275
- Joined: 11 Jul 2005 07:36
Command to open current active folder w a specific program?
Last edited by TsunamiZ on 16 Mar 2010 07:59, edited 2 times in total.
-
Stefan
- Posts: 1360
- Joined: 18 Nov 2008 21:47
- Location: Europe
Re: Command to open selected file(s) with a specific program?
http://88.191.26.34/XYwiki/index.php/Us ... d_CommandsTsunamiZ 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/Sc ... :_openwith
http://www.xyplorer.com/xyfc/viewtopic. ... 914#p39914
<curitem> works for selected folder too, seeBTW: Is there also a variation for opening selected folder with a specific program?
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
-
TsunamiZ
- Posts: 275
- Joined: 11 Jul 2005 07:36
Re: Command to open selected file(s) with a specific program?
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
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
-
TsunamiZ
- Posts: 275
- Joined: 11 Jul 2005 07:36
Re: Command to open selected file(s) with a specific program?
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.
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.
-
TsunamiZ
- Posts: 275
- Joined: 11 Jul 2005 07:36
Re: Command to open current active folder w a specific program?
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>-
Stefan
- Posts: 1360
- Joined: 18 Nov 2008 21:47
- Location: Europe
Re: Command to open current active folder w a specific program?
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.
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.
-
TsunamiZ
- Posts: 275
- Joined: 11 Jul 2005 07:36
Re: Command to open current active folder w a specific program?
ok this works, thanks
openwith "C:\Program Files (x86)\XnView\xnview.exe" "<curpath>"
openwith "C:\Program Files (x86)\XnView\xnview.exe" "<curpath>"
XYplorer Beta Club