Is there a way to change the name of the folder in "users"? - windows

I wanted to change the name of the folder (C:\Users\user1) to something else but it was not showing the option when right clicked. is there a way to get pass this feature?
I tried right clicking and other common ways to rename the folder but it didn't show the option to rename the folder.

Yes you can edit the folders in the user folder utilizing the registry editor. Sign out of the user account containing the folder you want to rename and log onto a different admin account.
Press Win + R, type regedit and click okay to open the registry editor
From there navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
You should see a number of folders starting with "S-1-5-21..." if you click on one you'll see a number of keys. One of which is ProfileImagePath which shows your user folder. Find which "S-1-5-21..." folder has the user folder you want to modify.
Right click on ProfileImagePath, click "Modify", and type the name you want for the folder.
Now go to C:\Users and rename your old folder to the one you typed in the registry editor. And you should be good to go!

Related

How can I add a new folder in Sublime Text?

I'm in Sublime working on a project that I need to add a folder in; when I right click to try "Add Folder.." I type in name, press enter and nothing happens. It will still allow me to add a file no problem, but that's not what I need just yet.
You can add files and folders on the sidebar in Sublime Text. First, go to Project -> Add Folder to Project and select whatever your parent folder is. That'll put your parent folder in the sidebar. Then you can right click on any of the folders in the sidebar to create child files and folders.
I was having the same problems, not being able to create folders in the sidebar. Luckily, this method worked for me:
I typed in the name field the full path of one random file:
foldername-1/foldername/filename.php
The folders got created automatically.
I thought I had the same issue, but I've realised that when you click on create New Folder, appears a bar at the bottom asking you for the Folder Name. Once you give it a name, the folder will be added.
I may have the same problem with you.
When I press Enter, it actually gives me a newline.
I can't apply the rename/add folder action through sidebar.
This github issue may be related.

I want to make a folder where users can drop files but not delete them

I am working on a shared folder in windows 7. I want others to be able to drop files into this folder but not delete the files . Is this possible or is it just all or nothing?
Yes, you can do this. Right-click the folder, click properties, then Security tab. Click Advanced, Change Permissions, select the user/group you want to change, then Edit.
Be careful of setting deny permissions - you're better off just not allowing Delete. You can Google that for more information.

Standard way to rename xcode project

After I create a project name for example Proj11, I'd like to change the name to Proj12.
So I use Project->Rename, then the name of the project to Proj12
But the project still contains several folders name Prlj11, and after I change the folders' name, the project can't been loaded.
So what is the standard way to rename my project as well as folder name.
Click on the project folder (blue folder with your app name on the top of the project navigator). Pull up the utilities (right pane), then file inspector. Your project name is there, change it to whatever you want. Then it will ask to save, keep all the files it selected for you selected, then press rename
The best answer I found was on the apple developer site. Imagine that? You can follow the link below, but essentially it is:
1) click on the target in xcode, on the right in "Identify and Type" under name change the name and press the ENTER button on your keyboard.
2)a window will appear confirming the change and what it will change. Once you confirm it will make the changes.
https://developer.apple.com/library/ios/qa/qa1625/_index.html
OR ANOTHER WAY AND EVEN EASIER:
left-click on the name project and rename. As soon as you rename it will ask you if you want to rename:
The folders you see in XCode navigators are not an actual folder/directories, these are virtual folders only to group your files.
And the folders you see in Finder, the path you manually set for the project, you need to rename them manually.

SHBrowseForFolder text edit

I have some questions regarding SHBrowseForFolder(). I am using it with BIF_USENEWUI, BIF_RETURNONLYFSDIRS and BIF_VALIDATE. I am mainly having problems with the edit box. I'd like it to function a bit differently.
Let us assume, I am at a valid directory "C:\path". If I type in a non-existing folder (Let us call it "Folder1") into the textbox and then press OK, then the path I receive is "C:\path". Is there a way to have it so that when I press OK, it creates "Folder1" in "C:\path" and gives me the path "C:\path\Folder1"? (Without having to use the Make New Folder button)
Currently, I can click on "Make New Folder", which creates a new folder that I can rename. In the text edit, it appears as New Folder (its default name). After I rename the folder, it still appears as New Folder in the text edit, unless I click on another folder and then click back on the newly named folder. Is there a way for the text edit to be updated as soon as I rename the folder?
1 install an application-defined callback function and specify the BIF_VALIDATE flag, then handle BFFM_VALIDATEFAILED and try to create the folder there.
2 you can subclass the dialog and the text edit in BFFM_INITIALIZED and look for TVN_BEGINLABELEDIT and TVN_ENDLABELEDIT from the tree control, then change the text in the edit control based on the change to tree node text when the user finishes editing. The dialog id for controls on the browse folder dialog is not documented, so there is a compatibility risk you need to consider. I won't be surprised if your code breaks after a Windows update/upgrade, but as a user, this is not a feature I would miss anyway.

How to add a shortcut to the 'SendTo' menu that will be available to all users

You can add a new item to the 'Send To' Windows explorer menu by creating an application shortcut in the SendTo folder contained in the user's profile folder e.g. C:\Documents and Settings\Username\SendTo\
But how do you add a 'Send To' menu item that will be available to all users without having to add it to every user's profile folder?
I found one page that suggested that you could create a SendTo folder in C:\Documents and Settings\All Users but the article was targeted at Windows 2000 and it does not appear to work in Windows XP.
I don't think AllUsers works for SendTo.
But you might add it to the DefaultUser SendTo folder. Then any new users would inherit a copy of the shortcut in their SendTo folder.
If you're wanting to add it to existing users, you're stuck putting the shortcuts in individual user's SendTo folders.

Resources