windows-7
What does “Can not obtain ownership information” in Netstat -ab mean?
Run netstat -ano and look at the PID that it is under.
Batch file command PAUSE does not work
If the last command fails pause won’t work. You can fix it by putting “call” behind the command you are running (whatever command is before the pause) then the pause will work. So for example I had a phpunit batch file that looked like this: phpunit tests/sometests.php pause When phpunit failed it just exited without … Read more
How can I determine the sector size in windows?
You want fsutil. Make sure you run Command Prompt as Admin. C:\Windows\system32>fsutil fsinfo ntfsinfo c: NTFS Volume Serial Number : 0xf4ca5d7cca5d3c54 Version : 3.1 Number Sectors : 0x00000000378fd7ff Total Clusters : 0x0000000006f1faff Free Clusters : 0x00000000000e8821 Total Reserved : 0x0000000000000910 Bytes Per Sector : 512 Bytes Per Physical Sector : 512 Bytes Per Cluster : … Read more
What is the difference between ProgramData and AppData?
To put it straight, ProgramData contains application data that is not user specific.This data will be available to all users on the computer. Any global data should be put in here. AppData folder contains configuration settings, downloaded information/files for a particular user. So, for example any user specific preferences and profile configurations can be stored … Read more
Windows 7: unable to register DLL – Error Code:0X80004005
According to this: http://www.vistax64.com/vista-installation-setup/33219-regsvr32-error-0x80004005.html Run it in a elevated command prompt.
PowerShell on Windows 7: Set-ExecutionPolicy for regular users
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser This will set the execution policy for the current user (stored in HKEY_CURRENT_USER) rather than the local machine (HKEY_LOCAL_MACHINE). This is useful if you don’t have administrative control over the computer. RemoteSigned is a safer execution policy than Unrestricted. If you download a script and RemoteSigned is preventing you from executing … Read more
Running CMake on Windows
The default generator for Windows seems to be set to NMAKE. Try to use: cmake -G “MinGW Makefiles” Or use the GUI, and select MinGW Makefiles when prompted for a generator. Don’t forget to cleanup the directory where you tried to run CMake, or delete the cache in the GUI. Otherwise, it will try again … Read more
How to access shared folder without giving username and password [closed]
I found one way to access the shared folder without giving the username and password. We need to change the share folder protect settings in the machine where the folder has been shared. Go to Control Panel > Network and sharing center > Change advanced sharing settings > Enable Turn Off password protect sharing option. … Read more
Changing default startup directory for command prompt in Windows 7
Make a shortcut pointing to cmd.exe somwhere (e.g. desktop) then right-click on the copy and select “properties”. Navigate to the “Shortcut” menu and change the “Start in:” directory.