@.         
                @@         
          :     :@         
          .@     @         
           :@    @+        
            +@   @@        
        `@@@;'@` +@        
       '@@'+@@@@; @        
               @@@@'       
                +@@@.      
                 `@@@+     
       :@@:@.     :@@@     
        .@@@@:     @       
          @#@@@    @:      
          .@ '@@@  @@      
           ;@  #@@@`.      
            @+  @@@@@      
             @   +@@@@:    
        @@@@@@.    +@@@+   
        @@.@@@        .    
         @,                
         `@                
          +@               
        #@@;               
       :@:@@@              
       .@ #+#@             
       `@  @ @+            
        @'  @ @            
        :@  :@@            
         @@  #;            
          @:               
           @:              
                .          
                @+         
        ;:      `@         
       +@@@      ::        
        #@@@'     @        
         :@@@@    :;       
          `@@@@:   @       
           .@@@@#  @`      
             @;@@@`+@      
              @ @@@@@      
               @ '@@#      
                @  ;       
                 @         
         @@@:    :@        
        @@@@@@:   ##       
        +  :@@@@.  @`      
         @   :@@@@ ;@      
         +@    ;@@@@@      
          @#     #@@@      
           @       +.      
        @@@@@              
       @@@@@@+             
       @   ;@@             
       #,   ;@+            
        @`   @@            
        :@# @+@            
         .@@@:`            
                           
           :               
         . #;              
        @@@@@              
       @.`#@@@             
       @    @@.            
       :#    @@            
        @#   @@            
         @@@@##            
          @@@              
                           
                           
                           
       .@@@@@#`            
       @+:;;@@@@:          
       ;@ @ @@ @@@`        
        @@@@ @@` @@#       
         ;@@  :@; :@@`     
          @+    @@  @@+    
          #@     `@+ .@#   
           @:      .@#:@;  
            @         :@   
                     
 
 

Popular Posts

Windows 8 Does not allow to make Ad Hoc network , And the new update to it windows 8.1 doesn't even allow to connect to and Ad-Hoc network. The reasons are still not clear, but even this is not completely true. Windows 8 just removed the front end GUI to make the Ad-Hoc. Using CMD that can be done. The netsh command does this trick well,The command is something like this:

netsh wlan set hostednetwork mode=allow ssid=<network name> key=<password 8 char>
netsh wlan start hostednetwork

Here is a picture showing how to check if Hoatstednetwork is supported or not.

But typing these lines is painful and yes most of are lazy. So I thought of Making a batch file that Will some what automate this feature with little bit of user intraction in with the user can choose the Network name and password. Below goes the code for the Batch file that Present with a Menu that can Start, Stop the ad-hoc.
Ps: The Network created wont be visible on you laptop but other friends can see it and connect, If in the first attempt the network is not visible try first stoping the Ad-Hoc by Pressing 2 the second option in the Menu.


Copy the below code to a text file and save it as "adhoc.bat" remember to run it as Administrator 


@echo off
:Menu
echo *******-----MENU-----*******
echo -----------------------------
echo 1. Start add hoc
echo 2. Stop ad hoc
echo 3. Exit
echo ------------------------------
set /p choice="Enter a choice "
if %choice% EQU 1 GOTO :Init
if %choice% EQU 2 GOTO :Stop
if %choice% EQU 3 GOTO :Out
if %choice% NEQ 1 set res=0
if %choice% NEQ 2 set res=0
if %choice% NEQ 3 set res=0
if %res% EQU 0 Goto Error
:Init
netsh wlan stop hostednetwork
set /p name="Enter name:"
set /p pass="Enter Password min 8 character:"
echo %name%
netsh wlan set hostednetwork mode=allow ssid=%name% key=%pass%
netsh wlan start hostednetwork
GOTO :Menu
:Stop
netsh wlan stop hostednetwork
GOTO :Menu
:Error
echo ********ERROR*******
echo Enter a valid number
echo ********************
echo 
GOTO :Menu
:Out
exit

Best Method is to Paste this batch file any where for eg. inside a directory in "Program Files" and make a shortcut. Then goto Properties and under Advanced option change the tick the check-box that says Run as administrator. This saves you from right clicking and then running as administrator, moreover the icon can also be changed and this shortcut when added to start Menu folder will be available under start too with a good icon. That's it


0 comments