Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
Dossier
- Posts: 4
- Joined: 24 Oct 2017 08:14
#1
Post
by Dossier » 24 Oct 2017 09:32
Hallo DOS experts,
I would like to start notepad++ by a desktop link
(#1) under the option "alwaysOnTop" in a way that
(#2) the file "G:/Data/frequentInputs.txt" is opened (which I use for copy&paste actions).
The code
Code: Select all
C:
cd "C:\Program Files (x86)\Notepad++"
notepad++ -alwaysOnTop
acchieves #1. I see notepad++ in the file arrangement as I closed it before. But how do I manage #2 - i. e. the text of frequentInputs.txt should be visible?
Regards
Dossier
-
aGerman
- Expert
- Posts: 4678
- Joined: 22 Jan 2010 18:01
- Location: Germany
#2
Post
by aGerman » 24 Oct 2017 10:37
Basically this has nothing to do with batch. Create a shortcut to notepad++.exe. Then right click on it and chose "Properties". Change the "Target" to
Code: Select all
"C:\Program Files (x86)\Notepad++\notepad++.exe" -alwaysOnTop "G:\Data\frequentInputs.txt"
That's it.
Steffen
-
Dossier
- Posts: 4
- Joined: 24 Oct 2017 08:14
#3
Post
by Dossier » 24 Oct 2017 15:01
Your line of code as a batch file does #1 and #2.
Thanks a lot for your response and help.
Regards
Dossier
-
aGerman
- Expert
- Posts: 4678
- Joined: 22 Jan 2010 18:01
- Location: Germany
#4
Post
by aGerman » 24 Oct 2017 15:44
Dossier wrote:Your line of code as a batch file does #1 and #2.
My point was that you don't even need a batch file
Steffen
-
Dossier
- Posts: 4
- Joined: 24 Oct 2017 08:14
#5
Post
by Dossier » 25 Oct 2017 02:16
My point was that you don't even need a batch file.
That'sright. I knew the View option
Always on top before . My point is to save clicks: Click on the desktop link to the bat and see the frequent inputs. And that's why I addressed to a DOS forum.
Regards
Dossier
-
aGerman
- Expert
- Posts: 4678
- Joined: 22 Jan 2010 18:01
- Location: Germany
#6
Post
by aGerman » 25 Oct 2017 06:30
Yes but you didn't read my first reply carefully. The whole time I'm talking about a shortcut (also known as desktop icon). Nevermind.
-
Dossier
- Posts: 4
- Joined: 24 Oct 2017 08:14
#7
Post
by Dossier » 25 Oct 2017 13:51
Got it now! That works too and is more straightforward.
Regards
Dossier