Toughest to solve....?

S

sunny.it

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?
 
P

Pegasus \(MVP\)

sunny.it said:
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.
 
S

sunny.it

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...
 
R

Ray Parrish

sunny.it said:
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 and fixing Windows.html>
Trouble shooting and Fixing Windows
http://www.writingsoftheschizophrenic.com My poetry in web pages
 
P

Pegasus \(MVP\)

sunny.it said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top