Can't edit/save c:\.emacs file (Windows 11) - windows

I've been using emacs under Linux for a long time and just installed it on my Windows laptop. When I go to edit and save .emacs in Notepad, get the following
"You do not have permission to open this file. See the owner of the file or an administrator to obtain permission."
Oddly I have already opened the file and see this message when trying to save. I am an admin on this laptop, and I have given Everyone (and my actual user) Full Control permissions.
Also - the location of .emacs is c:\
There is no HOME environment variable set. I can try setting that and putting a .emacs there -- but kind of frustrating that Windows security settings are seemingly ignored for c:.emacs

Related

Invalid UNC path into shortcut - Windows

I have to create a shortcut for someone to point and launch an application remotely from a server.
The original shortcut has a UNC path in the target and start in boxes, I need to change the UNC path but it keeps saying the path is invalid and it won't allow me to save it.
I do not have permissions to open the application myself so I cannot right click the target file location and create shortcut.
example of the path I need to change to:
Target:
"\\server.au\application\version\Software\Deployment\CT.EI.Start.application"
Start in:
"\\server.au\application\version\Software\Deployment"
I can manually go as far \\server.com.au\application but not any further due to permission restrictions
Do I need to get permissions to this server and file or is there another way I can put the path in the shortcut? even if its through powershell or command prompt?
I was able to fix it
I did actually require permissions to the file and server to be able to update the shortcut

Windows 7 Cannot Delete a shortcut named $NtUninstallKB48959$

I have Window 7 64 bit OS in my laptop. I did reinstall the OS yesterday which moved my old windows, documents, program files folder into Windows.old folders. I tried to delete everything in that folder considering to save space. I could delete everything but shortcut named "$NtUninstallKB48959$" in the below mentioned path.
"C:\Windows.old\$Recycle.Bin\S-1-5-21-276155270-2342152204-2275300765-1000\$RGEAPLQ"
That shortcut links to "C:\Windows\System32\config".
So whenever I try to delete it gives error as below
Delete Confirmation
Error
And the shortcut is Non-editable.
I tried these below steps but none of them worked out.
1. Run a Complete Anti-Virus scan by Avast.
2. Ensure running with full Administrative rights.
3. Removed junk files by cleanmgr.
4. Ensure I am the owner of the folder and subfolders ('Folder->Right Click->Properties->Security tab->Advanced->Owner->Edit->Change owner to->Select my username->Checked Replace owner on subcontainers and objects')
5. Run System File Checker (Run cmd with administrative rights->chkdsk /f/r)
6. Run Disk Check Tool (Run cmd with administrative rights->chkdsk /f/r)
7. Checked whether drivers are up to date by Device Manager
Try acessing the properties of the file : Left click > Properties
Then try to edit the shortcut target value and save. Then try again to delete

Mac Terminal shows the name of a network machine on the prompt

Once I launch the terminal app, I see a network machine name before my name, any idea how to fix it.
attached screenshot.
the name before : (colon) is a network machine name
Edit:
i went to system preferences and turned off file sharing, but it's still there (will check again after rebooting computer)
This has nothing to do with FileSharing and everything to do with the hostname that the DNS server (usually a dynamic address-ing DHCP thing) assigns you.
So what you really want to do is modify your Bash prompt.
And here is a tutorial that talks about how to do it.
You can set a custom prompt by editing your ~/.bashrc file. Just add:
export PS1="\W \$"
If you have no .bashrc file in your user home directory just create one. :D

Apache Maven installation in windows 8

I followed steps mentioned in this link http://maven.apache.org/download.cgi
Whenever I type mvn --version in cmd.
I got 'mvn' is not recognized as an internal or external command, operable program or batch file.
But when I opened cmd with "Run as a administrator" it worked.
OS: windows 8
How can I run mvn for any user on windows 8.
Try setting the environment variable M2 as System variable instead of User variable.
I used Rapid Environment Editor, started as an Administrator, and put these variables into my System path, and this problem went away.
For some reason, when I added the the JDK, JRE, and Maven bin folders to my Path through the Windows utility, it didn't work. Rapid Environment Editor told me that the variables were not valid or I did not have access to them. Windows 8 seems to be really picky about administrator rights and I guess they didn't think that through very well.
Just be sure to start Rapid Environment Editor as an administrator, and re-open your command windows when you save your changes.
I had to move the installation directory of Maven into C:\Users*your_username*, so that Maven no longer required admin permissions. The PATH variables started working after that.
Set the MAVEN/M2 and MAVEN_HOME/M2_HOME variables in the environment variables in windows 8, this will solve the problem.
I'm using chinese version so that i'm not sure what's these word in english version.
click right button on "My computer"
click last item on list
click "Advanced system setting" at left side
"Evironment Variable"
append maven's bin directory into system's environment variables path
after all, try linux
The simplest way is:
Add maven directory to the path in systems variable.
don't add anything in user variable and no need to add any variable.
faced the same problem; The bins or files from path for M2_home and Java_home need to be found in a directory where the user has full control permission. Change the security permission settings of the user through the administrator by right click on the order, go to properties->security tab and check the Full control box for "authenticated user" and "user".

error when i want to save java file in jdk/bin

when i save java file error is you dont have permission to save in this location contact the administrator to obtain permission on window7
Don't store application data in the "Program Files" directory.
It is very bad design and regular users don't have write access to that directory (for a very good reason).
So even if you changed your settings locally to open up the door for viruses your application won't run on other computers.
Besides: storing a Java file in the JDK directory serves no purpose at all.
Btw: your uppercase letters are broken, as well as the dot or the comma...
That's normal - jdk/bin is the installation directory of the JDK, regular users cannot (and should not) write files there. You'll have the same problem on Linux/Unix and on Mac OS X, where installation directories are off-limits to regular users.
Write your files to the users home directory (System property "user.home", works across platforms), or let the user choose where you save stuff.
Bin directory do not allow directly to save program in it.
it is so simple, just save your .java file on desktop and then copy paste it in Bin. done ;)
If the file can't save directly to c:\program files\java\jdk1.8.0\bin\
Solution:-
Click start Menu type Notepad command in run run as administrator
Right click the Notepad run as Administrator, then type the program file can save directly to c:\program files\java\jdk1.8.0\bin\
Just try it......

Resources