Open jdmaxwell02 opened 1 year ago
Those aren’t errors, it’s just console logging.
I don’t remember the flag to start a cmd without a shell, iirc something like ‘start /k’
Those aren’t errors, it’s just console logging.
I don’t remember the flag to start a cmd without a shell, iirc something like ‘start /k’
So what exactly do I need to change to not get these console logs showing up and have the cmd window close itself and not close lofi after running the .bat?
Apologies for my ignorance, I am using basic coding knowledge from high school and what googling power i have.
TBH, I'm not sure, are you running from a batch file? You can try and add @echo off
at the beginning of your script.
I also tried to create a bat file to run spotify and lofi - I confirm that this is not possible correctly.
@jdmaxwell02 I can't exactly pin-point your issues, but let me tell you, you don't want to cd
in a script or start
links. start
, though, should never block unless /WAIT
is used.
Try to work with full paths, i.e.
@ECHO OFF
START "" "%PROGRAMFILES%\Spotify\Spotify.exe"
REM ...
Also try the /B
flag at the end of the START
command which should prevent a new window. In regards of the above example: I don't know the real paths, the above is just an example, so you get the idea.
@alx30721 You gonna block the thread if you call any program without START
.
Created a program to start all programs I use for streaming but get this error when I try to launch it with lofi. It works but the cmd window doesn't go away and if I close it manually lofi also closes. Do not get this error when I do not open lofi. Also tried going into file location and opening the .exe instead of the .lnk and got the same error. Don't know if this matters b/c i have like 0 coding experience.
My code:
The error: