REM Interactive Net Share bat file
@echo Off
SET Choice=
SET /P Choice="Do you want to Share [C:\temp]? [Y,N] : "
IF /I '%Choice%'=='Y' GOTO Yes
IF /I '%Choice%'=='N' GOTO No
goto Label2
:Yes
Echo Creating share........
net share bipin="C:\temp"
goto end
:No
Echo Deleting share.......
net share bipin /delete
goto end
:end
- Creating network drives with a batch file
net use z: \\computername, ip-add\sharename /persistent:no /user:username password
or
net use z: \\laptop\network /persistent:no
- Hide your computer from the network
net config server /HIDDEN:YES
- How to know which folders are shared
At command prompt: Rundll32.exe ntlanui.dll,ShareManage
- Hiding shared folders from the network
Add a dollar-sign ($) at the end of the share name
@echo Off
SET Choice=
SET /P Choice="Do you want to Share [C:\temp]? [Y,N] : "
IF /I '%Choice%'=='Y' GOTO Yes
IF /I '%Choice%'=='N' GOTO No
goto Label2
:Yes
Echo Creating share........
net share bipin="C:\temp"
goto end
:No
Echo Deleting share.......
net share bipin /delete
goto end
:end
- Creating network drives with a batch file
net use z: \\computername, ip-add\sharename /persistent:no /user:username password
or
net use z: \\laptop\network /persistent:no
- Hide your computer from the network
net config server /HIDDEN:YES
- How to know which folders are shared
At command prompt: Rundll32.exe ntlanui.dll,ShareManage
- Hiding shared folders from the network
Add a dollar-sign ($) at the end of the share name
No comments:
Post a Comment