Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Issue with a batch file

Featured Replies

I use an app in myoffice that requires me to disable the network before launching it. Once the app is launched, I can enable the network again.

As a workarpund, I created a batch file that disables the network, launches the app and enables the network again. I used the following code:

@echo on

ipconfig /release

"C:\Program Files\RoboHelp Office\RoboHTML\RoboHTML.exe"

ipconfig /renew

So whenever i want to start the app, i double-click the batch file and not the EXE.

Now this works the app gets launched automatically. Though there are two issues:

1. The windows command prompt window does not close after the app is launched.

2. The network does not get enabled. a small yellow triangle displays adjacent to the network icon in the system tray. I then have to enable the network myself.

Can anyone tell me how I can modify this batch file? Or is there any other way of doing this?

Pl. help


put the command exit @ the end of your batch file to close it :)

the network thing im not sure about

  • Author

Thanks MCT.

You know someone who can help em with the network thing?

someone will come around & post if they know :P

FIrst up ipconfig /release is a command used to release your IP address only. Renew just renews it. It doesn't disable the network. Obviously if you release your IP you won't be able to browse the network, but it doesn't mean it's disabled.

I'm not sure which command will disable your LAN connection but I'll look it up.

You need to use the Devcon program to enable and disable network connections from the command line. Devcon is listed as a "Command Line Utility Alternative to Device Manager.

The command to enable the connection looked like this:

devcon enable *rc_virtualadapter

And the command to disable the connection looked like this:

devcon disable *rc_virtualadapter

I am not sure how I found out the connections "name" but if you google devcon.exe you should be able to find it.

You can get more information, and download devcon, from microsoft at http://support.microsoft.com/default.aspx?...b;EN-US;Q311272

  • Author

thanks all. but i found what i was looking for:

You can disable and enable network using the following commands:

C:\> ipconfig /release

C:\> ipconfig /renew

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.