Posts in category: Microsoft DOS
How do I get domain user info from a windows command prompt?

C:\>net user <domain username here> /domain EXAMPLE: C:\>net user ROGUEHELPDESK /domain The request will be processed at a domain controller for domain ROGUEHELPDESK.COM. User name ROGUEHELPDESK Full Name Helpdesk, Rogue Comment User’s comment Country code (null) Account active Yes Account expires Never Password last set 6/6/2016 9:32:53 AM Password expires 9/4/2016 9:32:53 AM Password changeable […]

DOS: How do I move files with a specific characters in filename

In this example, we’re trying to move PDF files that have AB, BC & CD starting at the 5 character position. EXAMPLE SCRIPT NAME: “move.bat” REM Creates temp.txt with filenames that have AB, BC & CD DIR /B SENT\????AB*.pdf >> C:\temp.txt DIR /B SENT\????BC*.pdf >> C:\temp.txt DIR /B SENT\????CD*.pdf >> C:\temp.txt REM Copies files from temp.txt to PDF Archive […]