I basically have a file, for example, something.txt, and I want to be able to automatically open up that file using Notepad++.
I had atempted using the start command in a batch file, but i didnt understand much, so I just came here to ask you.
Try this (don't forget the double quotes)
"C:\Program Files\Notepad++\notepad++.exe" something.txt
Start, and you're trying it from a batch script, the script will wait for it to be closed before it continues or closes. If there are no more commands to run after opening your file in Notepad++, and you use Start the cmd.exe window will close instead of staying open in the background. If there are more commands to run, and they're not dependent upon having read the file content and closed Notepad++, Start will mean that those commands will continue to run without waiting for you to close Notepad++. Open a Command Prompt window and enter start /? for its info.start takes the first quoted string as a window title, so when you added start you opened an (unneeded) cmd instance with the title C:\Program Files\Notepad++\notepad++.exe, which in turn starts something.txt with its default editor (which happens to be the Windows Notepad). If you need to use start for some reason, the syntax would be start "title" "program" "parameter"
<full path to>\notepad++ "something.txt"startis not needed. Just execute the programNotepad++with the filename as parameter.@Start "" "%ProgramFiles%\Notepad++\notepad++.exe" "F:\ull\Path to\something.txt"or@Start "" "%ProgramFiles(x86)%\Notepad++\notepad++.exe" "F:\ull\Path to\something.txt", depending upon the install location of the program. I'll be surprised however if the installation didn't add the respective registry entry under[HKLM|HKCU]\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notepad++.exe, to save you having to provide its full path. Ifsomething.txtis in the current directory, and your%PATHEXT%contains.EXE, just use@Start notepad++ something.txt.