⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 精彩实例放送.txt

📁 采用屏幕录制程序录制的DOS讲解过程。实用、易懂
💻 TXT
字号:
1.删除win2k/xp系统默认共享的批处理 


  @echo preparing to delete all the default shares.when ready pres any key. 

  @pause 

  @echo off 

  :Rem check parameters if null show usage. 

  if {%1}=={} goto :Usage 

  :Rem code start. 

  echo. 

  echo ------------------------------------------------------ 

  echo. 

  echo Now deleting all the default shares. 

  echo. 

  net share %1$ /delete 

  net share %2$ /delete 

  net share %3$ /delete 

  net share %4$ /delete 

  net share %5$ /delete 

  net share %6$ /delete 

  net share %7$ /delete 

  net share %8$ /delete 

  net share %9$ /delete 

  net stop Server 

  net start Server 

  echo. 

  echo All the shares have been deleteed 

  echo. 

  echo ------------------------------------------------------ 

  echo. 

  echo Now modify the registry to change the system default properties. 

  echo. 

  echo Now creating the registry file 

  echo Windows Registry Editor Version 5.00> c:\delshare.reg 

  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]>> c:\delshare.reg 

  echo "AutoShareWks"=dword:00000000>> c:\delshare.reg 

  echo "AutoShareServer"=dword:00000000>> c:\delshare.reg 

  echo Nowing using the registry file to chang the system default properties. 

  regedit /s c:\delshare.reg 

  echo Deleting the temprotarily files. 

  del c:\delshare.reg 

  goto :END 
 :Usage 

  echo. 

  echo ------------------------------------------------------ 

  echo. 

  echo ☆ A example for batch file ☆ 

  echo ☆ [Use batch file to change the sysytem share properties.] ☆ 

  echo. 

  echo Author:Ex4rch 

  echo Mail:zhangthe9@sina.com  qq:124315391 

  echo. 

  echo Error:Not enough parameters 

  echo. 

  echo ☆ Please enter the share disk you wanna delete ☆ 

  echo. 

  echo For instance,to delete the default shares: 

  echo delshare c d e ipc admin print 

  echo. 

  echo If the disklable is not as C: D: E: ,Please chang it youself. 

  echo. 

  echo example: 

  echo If locak disklable are C: D: E: X: Y: Z: ,you should chang the command into : 

  echo delshare c d e x y z ipc admin print 

  echo. 

  echo *** you can delete nine shares once in a useing *** 

  echo. 

  echo ------------------------------------------------------ 

  goto :EOF 

  :END 

  echo. 

  echo ------------------------------------------------------ 

  echo. 

  echo OK,delshare.bat has deleted all the share you assigned. 

  echo.Any questions ,feel free to mail to www.77169.com 

  echo 

  echo. 

  echo ------------------------------------------------------ 

  echo. 

  :EOF 

  echo end of the batch file 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -