Jump to content

Toughest to solve....?


Recommended Posts

Guest sunny.it
Posted

Hello to all,

 

As I have four questions which are mentioned below:

 

1.) I'm using a batch file & it is in Startup folder. It runs every time

when I log in. I'm using three commands in it. Every time its shows Ok mesage

when a command is executed successfully, so I want to disable the "Ok"

mesage, I have used "@ECHO OFF" after every command but it doesn't work.

Commands are netsh firewall & netsh interface ip so when they are executed,

Ok mesage is appeared, I want to disable the mesage or it should not be

appeared.

 

2.)When we run a batch file, blank window appears, I want that window to be

minimized automatically and it runs in very small window above the clock or

in any side so that whenever batch file runs user can not notify that a batch

file is running.? OR it should disappear during running.

Is it possible... ? Actually I have seen this thing at few places but I

don't know how to do this thing :-(.

 

3.) Can we send the mesage in any colorful window, & Can we change the color

of the window (in which mesage appears) or can we change the title of the

window when it appears...? The syntax of sending mesage is MSG * Hello.

 

4.) Can we enable or disable lan or any Local area Connection by any command

or by batch file?

  • Replies 5
  • Created
  • Last Reply
Guest Jason Schoppert
Posted

Re: Toughest to solve....?

 

Hello:

 

Ever thought about giving AutoIt a try, its what I use, and its completely

free.

 

http://www.autoitscript.com/autoit3/index.shtml

 

Jason

 

 

 

 

 

"sunny.it" <sunny.it@discussions.microsoft.com> wrote in message

news:3208551A-7AC5-44E6-8144-8B0737913F67@microsoft.com...

> Hello to all,

>

> As I have four questions which are mentioned below:

>

> 1.) I'm using a batch file & it is in Startup folder. It runs every time

> when I log in. I'm using three commands in it. Every time its shows Ok

> mesage

> when a command is executed successfully, so I want to disable the "Ok"

> mesage, I have used "@ECHO OFF" after every command but it doesn't work.

> Commands are netsh firewall & netsh interface ip so when they are

> executed,

> Ok mesage is appeared, I want to disable the mesage or it should not be

> appeared.

>

> 2.)When we run a batch file, blank window appears, I want that window to

> be

> minimized automatically and it runs in very small window above the clock

> or

> in any side so that whenever batch file runs user can not notify that a

> batch

> file is running.? OR it should disappear during running.

> Is it possible... ? Actually I have seen this thing at few places but I

> don't know how to do this thing :-(.

>

> 3.) Can we send the mesage in any colorful window, & Can we change the

> color

> of the window (in which mesage appears) or can we change the title of the

> window when it appears...? The syntax of sending mesage is MSG * Hello.

>

> 4.) Can we enable or disable lan or any Local area Connection by any

> command

> or by batch file?

>

Guest Pegasus \(MVP\)
Posted

Re: Toughest to solve....?

 

 

"sunny.it" <sunny.it@discussions.microsoft.com> wrote in message

news:3208551A-7AC5-44E6-8144-8B0737913F67@microsoft.com...

> Hello to all,

>

> As I have four questions which are mentioned below:

>

> 1.) I'm using a batch file & it is in Startup folder. It runs every time

> when I log in. I'm using three commands in it. Every time its shows Ok

> mesage

> when a command is executed successfully, so I want to disable the "Ok"

> mesage, I have used "@ECHO OFF" after every command but it doesn't work.

> Commands are netsh firewall & netsh interface ip so when they are

> executed,

> Ok mesage is appeared, I want to disable the mesage or it should not be

> appeared.

Not really tough. If you do not want to see any messages, use this method:

netsh firewall ... ... 1>nul 2>nul

You need "@echo off" just once at the start of the batch file. Drop

all the others!

> 2.)When we run a batch file, blank window appears, I want that window to

> be

> minimized automatically and it runs in very small window above the clock

> or

> in any side so that whenever batch file runs user can not notify that a

> batch

> file is running.? OR it should disappear during running.

> Is it possible... ? Actually I have seen this thing at few places but I

> don't know how to do this thing :-(.

Instead of running the batch file directly, run it like so:

start /min "" cmd.exe /c d:\Tools\test.bat

>

> 3.) Can we send the mesage in any colorful window, & Can we change the

> color

> of the window (in which mesage appears) or can we change the title of the

> window when it appears...? The syntax of sending mesage is MSG * Hello.

You can send a message with this command:

net send %Computername% "Hello wordl"

Make sure that the messenger service is running.

>

> 4.) Can we enable or disable lan or any Local area Connection by any

> command

> or by batch file?

Yes - check the reply to the thread "How to program Enable, Disable

drivers",

posted in this newsgroup exactly 10 hours before your own question.

Guest sunny.it
Posted

Re: Toughest to solve....?

 

3.) Can we send the mesage in any colorful window, & Can we change the

colorof the window (in which mesage appears) or can we change the title of the

window when it appears...? The syntax of sending mesage is MSG * Hello.

You can send a message with this command:

net send %Computername% "Hello wordl"

Make sure that the messenger service is running.

 

But how can we change the title of its window and the mesage color box?

 

 

4.) Can we enable or disable lan or any Local area Connection by any

command or by batch file?

Yes - check the reply to the thread "How to program Enable, Disable

drivers",

posted in this newsgroup exactly 10 hours before your own question.

 

Please edit and forward the batch file of disabling lan, its for USB dear.

Thanks very much Pegasus (MVP). Have a Nice Day...

Guest Ray Parrish
Posted

Re: Toughest to solve....?

 

sunny.it wrote:

> Hello to all,

>

> As I have four questions which are mentioned below:

>

> 1.) I'm using a batch file & it is in Startup folder. It runs every time

> when I log in. I'm using three commands in it. Every time its shows Ok mesage

> when a command is executed successfully, so I want to disable the "Ok"

> mesage, I have used "@ECHO OFF" after every command but it doesn't work.

> Commands are netsh firewall & netsh interface ip so when they are executed,

> Ok mesage is appeared, I want to disable the mesage or it should not be

> appeared.

To get rid of the screen output use redirection and redirect the output

to NULL like so

 

netsh firewall >NULL

>

> 2.)When we run a batch file, blank window appears, I want that window to be

> minimized automatically and it runs in very small window above the clock or

> in any side so that whenever batch file runs user can not notify that a batch

> file is running.? OR it should disappear during running.

> Is it possible... ? Actually I have seen this thing at few places but I

> don't know how to do this thing :-(.

>

Right click the batch file in My Computer and select Properties.

Somewhere on that dialog you will be able to tell the program to "run

minimized" [sorry I'm in Ubuntu right now so I can't chekc for sure]

 

Later, Ray Parrish

-

http://www.rayslinks.com/ Web index of human reviewed links.

<http://www.rayslinks.com/Troubleshooting%20and%20fixing%20Windows.html>

Trouble shooting and Fixing Windows

http://www.writingsoftheschizophrenic.com My poetry in web pages

Guest Pegasus \(MVP\)
Posted

Re: Toughest to solve....?

 

 

"sunny.it" <sunnyit@discussions.microsoft.com> wrote in message

news:B65D5750-B679-4285-AC6A-8DA273836767@microsoft.com...

> 3.) Can we send the mesage in any colorful window, & Can we change the

> colorof the window (in which mesage appears) or can we change the title of

> the

> window when it appears...? The syntax of sending mesage is MSG * Hello.

> You can send a message with this command:

> net send %Computername% "Hello wordl"

> Make sure that the messenger service is running.

>

> But how can we change the title of its window and the mesage color box?

>

>

> 4.) Can we enable or disable lan or any Local area Connection by any

> command or by batch file?

> Yes - check the reply to the thread "How to program Enable, Disable

> drivers",

> posted in this newsgroup exactly 10 hours before your own question.

>

> Please edit and forward the batch file of disabling lan, its for USB dear.

> Thanks very much Pegasus (MVP). Have a Nice Day...

 

Adjust Line 14 to reflect the name of your network adapter as seen in the

Device Manager.


×
×
  • Create New...