I know this question has been already asked but it didn't work for me.
When I run the command:
appcmd set config /section:system.webServer/directoryBrowse /enabled:true
I have the following error:
The command appcmd was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.
At his point I don't know what to do. How can I run the command?
I would try it at the site level first, Run with elevated permission i.e. Run as Administrator
Enable directory browsing at the site level
cd "C:\Program Files (x86)\IIS Express\"
run this appcmd.exe set config "Contoso Some SITE NAME" -section:system.webServer/directoryBrowse /enabled:"True" /showFlags:"Date, Time, Size, Extension"
check to turn off encryption and read only in folder options
Note: Run with elevated permission
GUI version from Microsoft site for other versions:
On the Start screen, move the pointer all the way to the lower left
corner, right-click the Start button, and then click Control Panel.
In Control Panel, click Programs and Features, and then click Turn
Windows features on or off.
Expand Internet Information Services,
expand World Wide Web Services, expand Common HTTP Features, and
then select Directory Browsing.
Click OK.
Click Close.
If it still does not work, then try & delete all the IIS cache and repeat the above
I previously answered this, and it works well here for the majority of people
Open CMD prompt & Navigate to IIS express - by typing the following
cd "C:\Program Files (x86)\IIS Express\"
run this appcmd.exe list site /xml | appcmd delete site /in
This will delete all the sites, enjoy!
Related
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
I am having strange problem. I used to run appcfg.py to update my app to appengine but now its not working anymore. When I run this command
C:\Program Files <x86>\Google\google_appengine>appcfg.py update E:\path\myApp\
Its not giving me anything, no error no feedback. Its just back to this line
C:\Program Files <x86>\Google\google_appengine>
Any idea about this issue!
P.S. I'm using Python 2.7. My code is updating through google app launcher but I need to run it from cmd prompt as I will be downloading/uploading appengine stuff which launcher doesn't allow me to do!
Thanks
I still had a little trouble with the instructions. Here's the steps I used to create a batch file to use the Google App Engine download_app with Windows 7.
In my example,
I'll use drive, C:
Default python path will be, C:\Python27\python.exe
GAE path (include "), "C:\Program Files (x86)\Google\google_appengine\appcfg.py"
App ID {your_app_id} will be just your app-id name
{your_app_version} is the "Version:" number in your GAE app.yaml file
I'll create a folder on my Windows 7 desktop and call it GAE_App
The desktop folder path will be C:\Users\{username}\Desktop\GAE_App
{your email} will be the Gmail account connected to your GAE
Right-click on the desktop and select New->Text Document. Open the newly created text document and add the following line of code modified for your setup to the blank text document,
C:\Python27\python.exe "C:\Program Files (x86)\Google\google_appengine\appcfg.py" download_app -A {your_app_id} -V {your_app_version} --email={your email} C:\Users\{username}\Desktop\GAE_App
Save the text document and change the file name to GAE_Download.bat
It's important that the extension now says ".bat" instead of ".txt"
Once finished, click on the batch to execute it. You'll be asked for a password and then the files should download into the GAE_App folder on your desktop. Now, whenever you need to download your files, just click on the batch file.
Not sure why Google didn't simply include this feature with their GAE for Windows software.
I faced the same issue. Here is a simple solution.
Just do this following Steps:
Go to program file where google app engine is installed. Generally It is named as Google.
click on appcfg.py and select open with.. Select "Choose Default Programs".
Select Python from programs and select "Always Use the selected program to open this kind of file" .
Now run the command you should get the results on command line.
For reference click here
Fixed by accessing python lib like that
C:\Python27>python appcfg.py update E:\path\myApp\
Here's a solution that worked for me:
"google_appengine/appcfg.py" update "C:\PATH TO APP
The appcfg.bat that should be used is located **C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\appengine-java-sdk\bin** and not the empty appcfg.bat that for some unknown reason also was here C:\Program Files\Google\Cloud SDK\
Good practice is to add this path to the system variable PATH
This worked for me
Basis
<PATH_TO_PYTHON>python <PATH_TO_APPCFG.PY>appcfg.py -A <PROJECT_INSTANCE_NAME> update app.yaml
Example
X:\Software\Python2.7\python Q:\SOFTWARE\GoogleAppEngineSDK\appcfg.py -A great-1337 update app.yaml
I just lost my admin privileges on my windows 7 (company policy). Now when I try to start idea.exe or idea64.exe I get a dialog with:
Couldn't load main class
If I right click on the executable and "run as administrator" it works.
Maybe someone face this issue before and know what permissions need to be added to what directories?
Make sure that IDEA can read all its files from the installation directory and read/write all files in config/plugins/caches directories.
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......
Trying to version control my project that's sitting in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs using TortoiseSVN. I can't commit it though because Tortoise doesn't have permission to create the .svn file in that folder (anywhere in Program Files?). How can I get around this?
Set the permissions on that folder accordingly:
right-click on folder, chose "properties". The "security" tab shows you which user has full access - add yourself to that list.
After that, you (the logged on user) have full access to that folder and you can checkout/update without problems.
Please do not run Tortoise or explorer in Administrator mode!
Run Tortoise as Administrator mode.