manage commands - open
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
manage commands - open
from manage commands - open it's possible open chrome AND one txt file? or this option it's only with "run script" ??
-
highend
- Posts: 15004
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
-
jupe
- Posts: 3478
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: manage commands - open
Or you could create a batch file and put that in the Open section. The batch file would only need to contain just the path of the txt file and the Chrome exe path both quoted, the text file would be opened with the windows associated program, and you would get a flash of a dos box.
e.g:
"c:\path\to\text\file.txt"
"c:\path\to\chrome.exe"
I am not sure why you would do it this way, but it is a possibility if your aim is to avoid scripting, or you could do the same as a XY script and load it in the open section as a command line, if your main aim was to just get the entry in the Open section not to avoid having to script.
e.g
e.g:
"c:\path\to\text\file.txt"
"c:\path\to\chrome.exe"
I am not sure why you would do it this way, but it is a possibility if your aim is to avoid scripting, or you could do the same as a XY script and load it in the open section as a command line, if your main aim was to just get the entry in the Open section not to avoid having to script.
e.g
Code: Select all
"<xy>" /feed="::runq 'c:\path\to\text\file.txt'; runq 'c:\path\to\chrome.exe';"-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
Re: manage commands - open
@ jupe
yess! great! work perfectly! many tanxs
yess! great! work perfectly! many tanxs
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
Re: manage commands - open
i have reverse the order of script to have chrome under and txt file on top.... but not work!
how to have txt file over chrome window??
how to have txt file over chrome window??
-
klownboy
- Posts: 4469
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: manage commands - open
Try putting a small wait command between the two (e.g., "wait 500;" for a half second wait). That worked for me.
Code: Select all
"<xy>" /feed="::runq 'c:\path\to\chrome.exe';wait 500;runq 'c:\path\to\text\file.txt';"-
highend
- Posts: 15004
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: manage commands - open
And a reliable way would be to just compile a simple .ahk script and run it together with the other tools, like:
Code: Select all
#NoEnv
#SingleInstance, Force
#Persistent
SetTimer, ActivateChrome, 50
return
ActivateChrome:
if WinExist("ahk_exe chrome.exe") {
WinActivate, ahk_exe chrome.exe
ExitApp
}
return
One of my scripts helped you out? Please donate via Paypal
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
Re: manage commands - open
@ klownboy
simply, fast and work fine! tanxs
simply, fast and work fine! tanxs
XYplorer Beta Club