Invalid UNC path into shortcut - Windows - 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

Related

Detect commandline application from CMD without messing with PATH variable or System32/SysWow64 dir

Scenario
I would like to install an x86 CommandLine application on a folder outside C:\Windows\System32 or C:\Windows\Syswow64 and still be able to access my app under CMD without adding my application's path inside the PATH environment variable.
Question
Is this possible to do? Maybe touching a needed registry keys?
Note: I know how to add my application into PATH variable/regvalue or how to access my application from CMD putting the required .exe in the System32/SysWow64 folder. This question is only to learn alternatives, it's not to solve issues with PATH or System dirs.
Code
I've tried this suggested approach from a comment of #Sertac Akyuz in this answer, I have stored MyApp.exe on C:\ root directory, but I can't detect the application just putting MyApp.exe under the CMD.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\MyApp.exe]
#="C:\\MyApp.exe"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\MyApp.exe]
#="C:\\MyApp.exe"
[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\MyApp.exe]
#="C:\\MyApp.exe"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\MyApp.exe]
#="C:\\MyApp.exe"
App Paths registry settings - used by Windows Explorer, to locate programs when you type program name in "Run..." box, and so on. These settings are not affecting cmd.exe behavior.
The only way to set up cmd.exe paths for searching applications is changing PATH environment variable. You can start cmd.exe from your own .bat/.cmd where you set up all required variables for current session, without changing it globally.

Error opening installation log file. Verify that the specified location exists and is writable

Problem
Attempting to install an application in Windows produces the following message:
Error opening installation log file. Verify that the specified location exists and is writable.
Solution
When you try to install application, a temp folder will be created, e.g.
Administrator\AppData\Local\{F2234F94-BDEB-4DBD-9ACB-D3AB5C8526C5}
{F2234F94-BDEB-4DBD-9ACB-D3AB5C8526C5}. Go to this directory and double-click the .MSI file and installation will restart and succeed.
This is a super easy solution:
Task Manager to kill explorer.exe, and then start a new instance of it.
Source: https://support.software.dell.com/kb/134431
Hit CTRL-ALT-DEL to launch Task Manager or right-click Desktop Task
Bar and choose Start Task Manager.
Click Processes Tab.
Locate and select the explorer.exe, click End Process.
You may need to select Show Processes from all users.
Click End Process to the prompt.
Your Desktop Icons and Desktop Bar will disappear.
Hit CTRL-ALT-DEL to launch Task Manager again.
Click File -> New Task (Run...).
Type explorer.exe and click Ok.
Your Desktop Task bar and Icons should appear again.
You can encounter this error if TMP and TEMP directories are different. This can result in installer files being written to TMP but when attempting to read those files using the TEMP value you see in the error.
Confirm that both values are referring to the same path. For example, from a command prompt:
set TEMP=%tmp%
and then run the installation again
Otherwise, it looks like an operating system permission issue.
If the procedure with stopping and starting explorer.exe fails, you can try:
In Command Prompt type
echo %temp%
Go to the folder in the output and check whether it is accessible. In case it is a file, remove it.

Make an app open on typing the name in run command

I want to open certain folders and files using run command.
I know that creating a shortcut for the required file or folder and placing it in the System32 folder will do the task. However i don't like to use System32 folder.
I would like to know if it is possible to create a folder under local hard disk and put the shortcuts into that and i would route it some how such that i would be able to open the apps and the files directly by typing the name of the shortcut into the run window.
Setting any Environment Variables would help?
Adding the folder to the PATH variable solved the issue.
As correctly answered by a_horse_with_no_name.

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