How to run an internet browser in the background without window? - batch-file

How can I run an internet browser with an url, any url I want, and it opens but it opens in background without showing a window?
It should be like a background media player. And if you know how to do that please tell me and tell me how I can mute the browser once starting. I am trying to do this with a batch file.

You can open a hidden window with powershell. You can use powershell commands within cmd or in a .bat file as well. Here's an example:
powershell saps 'https://stackoverflow.com/questions/44642194' -wi hidden
That opens a hidden window of your default browser with the specified link.

Related

Default IDE for terminal mac - (react app)

I am debugging a react app. If I click on this link given by the terminal, IDE Atom is Opening. How can I change it to another IDE like VS code for example?
Atom and VScode are text editors. If you go to the file SingleVariation.js from the link and right click on it you can select get info. This opens the get info window shown below.
About halfway down the window is a section designated as "Open With". This determines which application will open a file. The menu in that section may show Fetch. That just means it's looking for apps that could be used to open that file. When the search is finished you can pull down that menu and set it to VScode. After that click the button that says "change all". Now whenever you double-click on a .js file, it will open in VScode.

How to hide a window to system tray?

I'm developing a Windows app and within there is a django server running continously. Is there any possibility to hide the window to system tray from cmd? I don't want to use any external programms. I have a .bat script that starts the server and minimalizes the window to taskbar with this command :
START "runserver" /min python manage.py runserver
But I want to hide it to system tray, not taskbar. Is that possible?
You can't hide a console application because it does not actually have a window to hide, seeing as how it is running in the console (the console itself is just a window of the console, not the app running in it)

(batch file) open/close tab in already open browser

Is there a possibility to just open and close one single tab in a already running chrome browser session? I dont want to start a whole new browser like the command
start chrome.exe http://stackoverflow.com/
does it. Does someone have an idea how i could realize this?
I now found a way for opening a new tab on a already running browser:
start "webpage name" "http://stackoverflow.com/"
But I still don't know what the command for closing a single tab in a browser is.
Open Tab:
start "www.Discord.com"
or
start "https://Discord.com"
I still dont have any type of command that closes a tab on browser...

Unclosable webpage .bat file

I want to be able to make a .bat or .vbs file that opens a certain website and closes it after a set period of time. I'm trying to get the website to be unclosable until it's manually closed (through task manager) or after a timer of like a minute. Thanks.
You have to open a website in a browsers so you gab to call your browser with a command line argument (in this case the url of the website)
I only know how to do that with Firefox but it should be the same with chrome or IE.
start "" "path to browser" [url or other argument]
^ Title of your window!
Since it's a browser you can only close it manually!

IE6 closes new browser window when I set iframe's source to a file download service

In our application, we have a download flow that works as follows:
On main application page has a link showing file name to download. Target of this link is _blank.
User clicks this link. We open a new window.
The new window shows a wait message, makes an ajax call first to verify the file details from server (we have server implementations for this).
There is a hidden iframe in new window. After verification of file details, I set the file download url as the source of iframe so download request is sent via iframe.
When file response is received, IE6 suddenly shows a yellow bar at the top and then closes this new window forcefully. I do not see any file save dialog.
This works fine in IE7 and IE8, although I see the yellow security bar here too but window does not close, so I can start a manual download.
Can anyone help me on this? Is this a bug in IE6 that was resolved in IE 7/8?
Best regards,
Nadeem
I got it. Actually this is a bug of IE6 and you could get more info about it here: http://support.microsoft.com/kb/896017.
Regards,
Nadeem Ullah

Resources