I found these commands then came across Advanced Tweaker
I am running Windows 7 Home Premium 64bit
Please advise with respect to deleting Net Shares.
I am aware of the do's and don't explanations throughout the internet
but I'm interested to know how rather than not know then I have a choice and means to do so.
Any help would be appreciated.
The below command prompt, command lines, all work for me.
NET SHARE C$ /DELETE
NET SHARE D$ /DELETE
NET SHARE ADMIN$ /DELETE
NET SHARE IPC$ /DELETE
NET SHARE DFS$ /DELETE
NET SHARE COMCFG$ /DELETE
Then I came across Advanced Tweaker........ Running the Advance Tweakers appropriate addons I am still left with
IPC$The tweak to set DWORD 1 or 0 does change the registry, but does not disable / delete IPC$
as it still shows in the Computer / Manage / Shared Folders /
Shares
Using
NET SHARE IPC$ /DELETE at a prompt, deletes IPC$ until next reboot then IPC$ reappears.
I'd like to understand how to create a batch file / script and seek help to understand the correct
construction and syntax of such a file(s).
Would it be possible to execute all command simultaneously in a batch file
How would such a batch file be written for all of the below be written?
NET SHARE C$ /DELETE
NET SHARE D$ /DELETE
NET SHARE ADMIN$ /DELETE
NET SHARE IPC$ /DELETE
NET SHARE DFS$ /DELETE
NET SHARE COMCFG$ /DELETE
Any help and advise to get me started creating batch files / scripts would be very much appreciated.
What's a the difference between a batch file and script and when you'd use one in preference to the other?
Thank in advance.