Off topic - nice dos stuff

General discussions regarding the program language Java and its API's.

Moderator: Marcus

Post Reply
User avatar
Marcus
Site Admin
Posts: 1860
Joined: 2005.04.04 10:52
Location: Küssnacht am Rigi
Contact:

Off topic - nice dos stuff

Post by Marcus »

I tend to forget these:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun

+

doskey /macrofile [file]

+

cat=type $* etc...


This is just for future reference if/when my computer crash. Let's hope it's not this server. Ever.
User avatar
Marcus
Site Admin
Posts: 1860
Joined: 2005.04.04 10:52
Location: Küssnacht am Rigi
Contact:

Post by Marcus »

Well, it did crash. ;)
User avatar
Marcus
Site Admin
Posts: 1860
Joined: 2005.04.04 10:52
Location: Küssnacht am Rigi
Contact:

Re: Off topic - nice dos stuff

Post by Marcus »

Windows 7, taking ownership:
takeown /f <folder> /r
icacls <folder> /grant <user>:f /t

For example:
takeown /f "Program Files" /r
icacls "Program Files" /grant Marcus:f /t
Post Reply