I am trying to edit configuration file of Odoo. When I try to save it it gives me an error that I dont have access to save it. Can someone tell how to edit and save it
Just open bloc note. With administration rights
Right click on mouse execute as administrator open the file edit then save it.
Related
I want to download a large file from gdrive in remote server. I can download the file in my Chrome via clicking download and confirm. My question is how can simulate the click download button in a terminal or a simple programming script so that I can download the file on my remote server.
Take an example of this file
I can check the Chrome network
(it does not work for gdrive, but works for some website) Though I do not understand why it works, I can use the feature copy as curl and get runnable terminal cmd to download some file.
Note
I find there is a good python package gdown and easy to use. However, for some large file, it can not work. For exmaple, this 500mb file.
For the large file, gdrive ask a another confirmation
It would be great if I understand how "download button" works and simulating click action in remote server.
Now, every time I try to open my html file in my Chrome browser, I get this message:
ERR_ACCESS_DENIED
Can someone please tell me how I can reverse this?
How do I grant Chrome the permission to access any local files on my VS Code and atom?
Now, Thanks to Kuma, check out the thread link he or she provided, which helped me. You just have to go to system preferences, and under security and privacy, go to filers and folders, and go to files and folders and check the check box next to chrome.
If you are on a Mac, you can try the following:
Run the the following command on the file in a terminal, then try to open it again:
xattr 'your .html file name'
# If it shows com.apple.quarantine, run
xattr -c 'your html file name'
If that fixes it then it's most likely some apple security metadata on the file that get attached when files are downloaded from the web.
If you are on Windows10, you can view all the permissions you have added and rejected for an app (see this link: https://www.google.com/amp/s/www.howtogeek.com/368598/how-to-manage-app-permissions-on-windows-10/amp/)
Extract:
From the Settings screen, you can head to Settings > Apps > Apps & Features, click an app, and click “Advanced Options.”
Scroll down, and you’ll see the permissions the app can use under “App Permissions.” Toggle the app permissions on or off to allow or disallow access.
Otherwise, knowing what OS you are using will help find a solution.
There is also this other stack overflow thread, so you can try some of the answers there: Can't open some html files in chrome (mac)
I create a file with html extension with visual studio code. I can create the file but I cannot edit it. Can you help me solve this issue
Try running Visual Studio Code as an administrator if you are using Windows.
Right Click Visual Studio Code > Run as Administrator, follow the instructions from then on.
You can also edit file permissions entering here:
Right Click File > Properties > Security tab
This should lead you to an User Selection screen, select your user and click Edit, see if the checkmarks for Write and Read are activated, activate them otherwise, click OK and restart Visual Studio Code, try to access the file then.
If you are using Linux, try changing the read and write permissions so that you can make modifications to the file. This is done through chmod. Use Bash (or the terminal emulator you are given for doing this).
Example:
chmod +rw <file_here>
That should be enough.
More description would be better...Don't understand " create a file with html extension". Try to create a .txt file and open it with vscode and see if you can edit it. If can, you can create another .txt file in your PC, change the suffix of the filename(.txt) to (.html) and then try to open it with vscode, check if you can edit it.
html extension with visual studio code it have a lot of problems, so you can create index.html by yourself. Example:
Open VS then press on File then click on new window.
You can save as this window in your project folder.
Don't forgot to save it with .html file type so browser and VS can read it.
I have a bat file and I can run this file as administrator by right click on it. Now I create a link which calls the bat file on html page. I want to hit the link and run the file as administrator.
The code which calls my file normal way.
Restart DirectDataLink
Adjust the script (Link) below the line ::START that needs to run elevated in below posted batch script. For your example: call service-restart.bat and save it as RunElevated.bat
Change your link to Restart DirectDataLink.
The RunElavated will call your batch script and will try to "selfelevate".
While "finishing off" my database, I chose options from the file menu.
File Menu -> options -> Current database -> Application Options -> Display Form: field.
Upon hitting OK, Access immediately shut down and now just gives me the "Access has stopped working" message when trying to open the database.
Can I get my database back? How?
A good place to start would be, as Gord Thompson has suggested, try and hold the SHIFT key to bypass the startup form.
However this scenario suggests that the code might be corrupted. Sometimes, when you copy a file to a new location, the content of the file is disabled. So this could make the file in an openable state, where you would be able to Compact and Repair.
If this did not work (copying the file to a new location), then the other option is to Decompile your file. So in the file location of copy you just made; create a shortcut. With the following as the Location of the item
"C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" "C:\PathToYourFile\YourFileName.accdb" /decompile
'Make sure the first path is the path where MSACCESS is installed.
'I have it in Program Files (x86).......
Then double click the Shortcut, you should (hopefully) have your file back up and running.