how to run ms-dos command automatically?

October 15, 2011 at 20:44:40
Specs: Windows 7, 2
Hallo guys. I have a simple question for you.
I need to run ms-dos command automatically upon windows 7 start-up. The thing is that i would like to launch virtual wifi and to do that i need to type a command every time i restart my PC. So, is there a way to somehow make windows run a command without me typing it every time.
The command is: netsh wlan start hostednetwork

I already configured the ssid, and the key...but when i restart the PC it disappears, and i have to type it again in order to start virtual network adapter...the configuration though stays...no need to configure the ssid and the key....just the above command has to be typed in every time.

Please help.
Thanks.


See More: how to run ms-dos command automatically?

Report •

#1
October 16, 2011 at 00:24:21
just make a batch file , and schedule it in Schuduled Tasks to run every time the computers starts.

Vishal
http://www.floppytousb.net


Report •

#2
October 16, 2011 at 01:03:27
ok, sounds good, but i don't know how to do it...where to find batch file...what to write in it...is it possible for you to explain it for me pls.
thx.

Report •

#3
October 16, 2011 at 10:31:38
in command line

type this

copy con mybatch.bat
netsh wlan start hostednetwork


Then at the end of that line press the enter key, then press and hold control key and then press the z key. Then the file should be saved. Then you can use what you want with that file. Put it in start up or make a link to your desktop.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

Related Solutions

#4
October 16, 2011 at 12:40:04
Hi and thanks. I did everything you wrote, and when i pressed CTRL+Z and Enter after that it said: " 1 file copied" but i don't know where to find that file. and should i look for batch.bat or mybatch.bat or batchfile.bat ??? Sorry but i am not very good at it. Please help. thx.

Report •

#5
October 17, 2011 at 14:22:04
Where your prompt was at when you started typing. Use find file if you can't remember.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

#6
February 12, 2012 at 10:19:37
the easy way just do this click| start | program | startup < rigth click it open and put your shortcut there it will execute automatically every time windows starts

JerryDark cybotz09@yahoo.com


Report •

Ask Question