Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Viewing shares, sessions and open files, cmd example?


The command prompt on Windows 11, 10, ... etc. allows you to view / query shared folders and current sessions / open files!




The solution is quite simple with the NET SHARE command, if you do not want to use the standard FsMgmt.msc  Windows Sharing Tool , here is a solution that administrators using via Remote Desktop / Server to for example remote access to a Microsoft Windows Server. But you can test that as a standard user.


Example 1: 


The listing of shared folders and devices (printer, scanner, ....)! 


C:\Windows\System32>NET SHARE 

 
The NET SHARE command will make the resources of a server / desktop PC available to network users. When used without options, displays information about all shared folders and other resources (such as printers, scanners, plotters ) on the computer. For each Windows Share component, the devices share names and / or share names of folders and pathnames are displayed. 

Example 2: 


Listing used shared files! 



C:\Windows\System32>NET FILE
 
ID Path Username Qty. the blockages 
------------------------------------------------ ----------------------- 
169 C:\Users\Nenad\Music\Folder1\ Nenad H 0 
184 C:\Users\Nenad\Music\Folder1\ Nenad H 0 
The command completed successfully. 
 
 
With NET FILE without specifying arguments, all files being accessed are displayed. You can use parameters to close a shared file and remove the file locks. When used without options, the open files are listed on a Windows machine. The list contains the ID of an open file (FILE ID), as well as the directory of the file, the username it accesses, and the number of locks on the file.


Example 3:


CLOSE closes a file opened by the share and removes file locks.
 
 

C:\Windows>NET FILE 184 /CLOSE
The command was executed successfully.
C:\Windows>
 
 
Tip: Enter this command on the Windows machine where the file is shared. 

Info:
In the help file of  ... NET FILE ! 
and  .. NET SHARE ! 
you will find the overview of the command parameters and other options.



FAQ 38: Updated on: 2 September 2022 04:59 Windows
Windows-Console

Copying files with COPY commands, cmd with examples?


In Windows you can copy via COPY command without file explorer, files and directories without additional software Start the cmd.exe and use the command
Windows-Console

Using SCHTASK for Programs Autostart in all Windows OS, how to?


Time controlled Autostart of Windows 11, 10, etc. programs In new Windows OS you can use SCHTASK to start programs at a certain time Start the cmd.exe
Windows-Console

Secure File Removal Using the ERASE Command, Examples?


Please use Eraser to delete sensitive data. It can also clean digital SD memory cards of all recoverable data As with Linux, Appels Mac OS and other systems
Windows-Console

Redirect CMD command output to a file, with an example?


Use redirection operators to redirect or save the results of a command prompt in a file on MS Server OS or Windows 11, 10, As with MAC OS and Linux,
Windows-Console

Create multiple guest accounts on Windows 11, 10, 8.1, MS Server with commands?


It is very easy to create multiple guest accounts for guest users under Windows 11 / 10 / 8.1 / 7, or Windows Server by using command lines It is not only
Windows-Console

Check if there is a file path via PowerShell?


The solution is very simple to use a command in PowerShell to check whether a file path or folder path is available The solution is very simple with the test-path command,
Windows-Console

Use batch file to start multiple programs on Windows 11, 10...!


Start several programs at the same time via a batch file in order to save several clicks, is very popular on MS Windows 11, 10, desktop and server operating

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. Show Windows shares cmd?
  2. Show cmd shares in the network?
  3. Does Microsoft i's Shared Folders Administration have an overview of the shares that simultaneously shows all active client connections to this share?
  4. Show cmd shared folder?
  5. Show shares in the command prompt?
  6. Show open files in Server 2019, 2016 ... overview of the currently open files of the Windows share server?
  7. Access to the share listing to ask the appropriate users to close the files?
  8. Show cmd sessions?
  9. Show sessions cmd?
  10. Show open files and user sessions?
  11. share cmd?
  12. Find a file's open session?
  13. Query shared files cmd?
  14. folder session?
  15. Show shared folder cmd?
  16. Open released file via cmd?
  17. Shared folder sessions windows 10?
  18. Show shared folder sessions cmd?
  19. Recognize shared folder sessions, an overview of all sessions that are currently active?
  20. Which users have access, an overview of which user has access to which file?
  21. Where are all the folders and files that are currently accessible to Windows listed in order to determine in real time which user is currently using which file?
  22. I want to show open files on the Windows server as administrators and know that it is possible to display files opened on the server by the user, what is usually possible on a file server and shares for different folders?
Keywords: windows, console, viewing, shares, sessions, open, files, example, command, prompt, view, query, shared, folders, current, share, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + DesktopOK
  + ProcessKO
  + WinBin2Iso
  + ThisIsMyFile
  + TheAeroClock
  + CoronaKO
  + MatriX.CoronaKO
  + Find.Same.Images.OK
  + 3D.Benchmark.OK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.062


► Where is the Windows 10 / 11 WordPad, how to open the writer? ◄

► If an EXE file is blocked in Windows Firewall, are the DLL files blocked too? ◄

► Start the programs in compatibility mode  on Windows 8.1 / 10, how to? ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....