13
votes
How do I reset file ownership at the command line when the files are owned by users from a dead domain?
The issue with using icacls /setowner is that gaining ownership doesn't implicitly grant you any other rights except "Write ACL" – in particular it doesn't actually grant you the rights to ...
2
votes
Accepted
"ls: cannot open directory '.': No such file or directory" in Git Bash (in VS Code terminal)
This can happen when the current working directory is deleted or moved away from underneath you.
Example using two terminals/sessions (I'll put a no-op : 1; and : 2; in front of each command to ...
2
votes
How do I reset file ownership at the command line when the files are owned by users from a dead domain?
Since there's already a good answer that's probably what the OP wants, here's another option. NTFS support on Linux tends to be really useful (or broken, depending on how you see it, I guess) as it ...
1
vote
Show only folder name with the link information via Windows DIR
The help for the dir command shows the following:
C:\>dir /?
Displays a list of files and subdirectories in a directory.
DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
...
1
vote
Accepted
Press any key to exit in command prompt?
Instead of running CMD in order to execute the certutil command,
use instead this command in the script:
run "path\to\batch.bat" "%Path_to_Selection%"
The .bat file will contain ...
1
vote
Why doesn't CMD inherit environment variables on this machine?
Use the /d option of cmd.exe to skip Autorun commands from the registry. No need to remove the Autorun key.
C:\> cmd /? | findstr uto
/D Disable execution of AutoRun commands from registry (...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
command-line × 12891windows × 3960
linux × 2675
bash × 1590
batch × 1202
windows-7 × 1084
batch-file × 826
powershell × 822
windows-10 × 812
cmd.exe × 725
macos × 697
terminal × 548
shell × 533
unix × 412
ubuntu × 361
ffmpeg × 277
ssh × 261
networking × 249
script × 241
environment-variables × 225
windows-xp × 218
7-zip × 188
mac × 181
path × 179
video × 177