Editing in the root directory of windows 10

Jul 12, 2008
286
0
Las Vegas, NV
I get that it is a security issue and therefore not set as default, but is there a way to allow editing of files in the root folder / directory? I cannot even do it to a text file. I have to copy it to my desktop, edit and then copy it back.

No other way?

Regards,
Chuck Billow
 
Nov 13, 2008
255
3
www.thedave.me
There isn't anything particularly special about the root directory, you just need administrative credentials.

Since we're talking about TCMD/TCC here, start TCC elevated and you can then use any tools in TCC, or launch Notepad or whatever else.

You can't right click and launch editors elevated, but if you launch an editor elevated you can then modify files in the root.
 
Jun 2, 2008
359
4
Another thing you can do is edit the properties of your editor/TCMD/TCC shortcut or .exe file itself and set it to always run as an Administrator.
 
Jul 12, 2008
286
0
Las Vegas, NV
Dave I just tried from both running Explorer (shortcut) as Admin, and also having the Advanced Properties to As Admin. I still cannot create a file in the root folder/directory. I have to create it elsewhere and then move or copy it over.
 
Jun 2, 2008
359
4
Getting Explorer to run as Admin is tricky because it's already running to give you your desktop, so it simply opens a new window rather than a new elevated process. You could disable User Account Control (UAC) like I do and get the full list of things to create in the right click->New menu, but that's advised against.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
You might be able to use ICACLS.EXE (elevated) on the files you want to be able to modify. On Windows 7, I use this command in the firewall's log directory to get access to the log.
[cpde] icacls pfirewall.log vefatica:F[/code]
"vefatica" is my username. "F" means "full" control.
 
Similar threads
Thread starter Title Forum Replies Date
R Emacs-style cmdline editing Ctrl-K Support 0
Phileosophos Command-line Editing Shortkeys That Fail Support 6
tmaynard How to? Control-U alias for Escape (command line editing) Support 5
Jay Sage Creating or Editing TCMD Themes Support 6
A minor documentation fix - command line editing Support 0
CWBillow TCMD prompt here only opens to root Support 6
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
D How to use multi-line DO to loop through first level directory names Support 5
D ParentDirectory does not update directory history Support 6
samintz CDD to non-existent directory hangs Support 2
gworley rd (Remove Directory) gives interesting error: Support 2
D Directory History Window with wildcard search Support 3
D How to? Skip removing directory (RMDIR) without error message Support 2
gentzel Directory stack empty when running TCEXIT? Support 9
vefatica Disable extended directory searches (completely)? Support 8
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
G Local Directory Corruption Support 11
Jay Sage Directory Alias Access to FTP Servers Support 2
Joe Caverly DIRectory Colorization in v25 Help File Support 0
K copy changing destination current directory Support 1
thorntonpg option /u not working The directory name is invalid Support 5
J built in file explorer - how do i go back "up" the directory? Support 2
vefatica Extended directory searches? Support 6
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A Installer /extract: extracts into current directory if target not exists Support 12
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
G Extended directory search not working Support 4
D Directory stack empty Support 1
J directory or folder to start in Support 2
M How to unlock a directory Support 1
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2
C Touch command — I Need to touch matching files in another directory. Support 5
nickles Move takecommand.18.0.key location to installation directory Support 4
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
vefatica TCMD's current directory? Support 4
J How to set working directory Support 10
nickles How to? Follow a JUNCTION type directory link Support 9
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I tab completion with directory commands Support 7
vefatica Start-up directory for new tabs? Support 7
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
vefatica FFIND /S, find directory with specified name? Support 7
David Wilbanks How to make new tab open in same directory as previous tab? Support 4
H WAD Wild Card in Directory @shfolder[25] acting differently Support 3
M How to? List path getting short file and directory names... Support 10
A How to? Can't change directory ("cd") into system hidden files Support 13
mfarah How to? So I want a custom directory for the plugins... Support 16
D Why doesn't ffind find directory? Support 3
T dir /h error in empty directory Support 22

Similar threads