The current directory is invalid on Windows 8 [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I've been trying to run the following command through command prompt as administrator
netstat -a -b
However I get the following error
The current directory is invalid.
I tried to follow http://support.microsoft.com/kb/257996 but I don't think mine has anything to do with Logon Scripts
UPDATE
Running netstat -a as normal user through command prompt works fine. However I need to know which process ID using -b option which requires elevation.

I tried the same command "netstat -a -b" WITH ADMINISTRATIVE PRIVILEGES
There isnt any issue at all.
Here is your Problem:
Like any other program netstat.exe is also a program which is located on the windows directory
Browse to C:\Windows\system32> and then type so you should face the program locational issue.
If you are unsure whether c: or d: is the windows root directory.
1.Open the cmd file with Admin Previleges
2.type "cd %windir%\system32"
3.The above step should automatically switch to your root win folder

Related

Windows [10] File Folder Denied Access [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I have a file folder called, my_folder it has been created by a program and has been made into a read-only access. I have admin rights to the computer I'm using but when I try to make it non-read-only it says that I don't have access to it. I've tried using Admin Command Prompt and deleting it with Admin rights in the File Explorer. The end goal is to delete the folder.
Here is the error I get when I try to delete it via the File Explorer:
And here is the error I get when trying to do the deletion via Admin Terminal:
$> rmdir my_folder
Access is denied
Permissions issues are my favorite Windows problems! Deleting with admin rights usually works for me. You might try taking ownership of the folder and trying again. If that fails try booting into safe mode.

Windows: How to make command line prompt open at a different path? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I want to change the properties of Windows that when I open a command line prompt window, it will be opened at another path that the current one. Do you know how to do it?
You can create a shortcut to cmd.exe. Then do this :
Right click on Command Prompt > Properties > Shortcut. There you'll see a line which says Target: ". There just specify in which folder you want the cmd to start in.
Where you need to be, after accessing Properties
If you add /k cd "\path\to\folder" to the Target field (after cmd.exe), the resultant Command Prompt window will execute the cd command and then leave you with a prompt to do with as you please. If you need to change to a different drive, you'll need cd /d rather than just cd. If you need to change to a network drive, use pushd instead - it automatically mounts the target UNC path as a drive and changes to it.

How to reset the admin password for Ubuntu on Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have Bash Ubuntu on Windows 10. This is enabled by turning on the Developer mode feature so the normal non-programmer would likely not need this. I need to reset the password. I must have typed it wrong (twice, somehow) when I first set it up. How can I do that?
This has been answered HERE
Copying from their answer:
In Windows command prompt change the default user to root:
lxrun /setdefaultuser root
Now Bash on Ubuntu on Windows logs you in as root without asking password
Use passwd command in Bash to change the user password:
passwd your_username
Change the default user back to your normal user in Windows command prompt
lxrun /setdefaultuser your_username

Changing directories in Windows command prompt [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I keep getting the message, 'YourFolder is not recognized as an internal or external command, operable program or batch file', in Windows Command Prompt and Powershell. I want to set git up, upload my Android project to github.
YourFolder, though, definitely exists.
For example: Users folder exists.
But I try go into the Users folder and I get:
It happens with every single folder. I tried a few things like adding C:\Windows\System32\; into the environment variable and rebooting, and opening Command Prompt with Administrator Privileges but had no luck. Still the same problem.
Any suggestions?
You can't run a folder name in the command prompt like you can in explorer; you have to tell the shell what you want to do with it.
If you want to to change directories to the console, use cd YourFolder
C:\>cd users
C:\Users>dir
Volume in drive C has no label.
Directory of C:\Users
2014-07-17 17:47 <DIR> .
2014-07-17 17:47 <DIR> ..
etc
If you want to open an explorer window, the command is start YourFolder

Cygwin sshd use cmd instead of bash upon login via PuTTY [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I've finally got to the point where I can successfully SSH into my server, but commands like 'rake' and 'bundle' don't work! I'd rather be taken to cmd than bash upon login. Is there a command I can put into PuTTY's "Remote Command" box so that cmd gets loaded? I tried "-c cmd" but it just closes upon a successful connection. If I leave it out and just type 'cmd' when the bash prompt is ready it works ok. Also another thing of note is that user environment variables in Windows don't get transferred to the SSH session (like GIT_SSH).
Nothing was working, but I came across something which sort of made sense when browsing the passwd file for another problem I was having. The last part of the line indicates what is executed upon login. Originally it was /bin/bash, so I changed it to the cmd executable and it works now.
ex)
Administrator:unused:[SID-STUFF]:U-POS-SERVER\Administrator,[SID-HERE]:/cygdrive/c/Users/Administrator:/cygdrive/c/windows/system32/cmd

Resources