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

Java Access Denied

Your working directory is C:\Program Files (x86)\Java\jdk1.6.0_17\bin. You are not allowed to write files here. Copy your java files to a different directory and try to compile them there. edit: You should include C:\Program Files (x86)\Java\jdk1.6.0_17\bin to your PATH environment variable. And set JAVA_PATH to C:\Program Files (x86)\Java\jdk1.6.0_17. set JAVA_PATH=”C:\Program Files (x86)\Java\jdk1.6.0_17″ set PATH=%PATH%;”C:\Program Files … Read more

Why won’t this ctypes code work with Python 3.3 but will work with Python 2.7?

SystemParametersInfoA requires a 8-bit ANSI encoded input string as a parameter, which is known as mbcs encoding in Python. You will have to use SystemParametersInfoW in python3. This is because SystemParametersInfoW takes in a UTF-16 wide string (which is wchar_t * in C) and the ctypes library automatically converts this passed unicode argument into c_wchar_p. … Read more

What is after Internet Explorer 11 on Windows 7? How well will ES2016 be supported in enterprises?

With JavaScript now being updated each year (ES2015, ES2016, ES2017, etc.), how does Microsoft plan to keep IE 11 up to date? They’re not going to. As of 2015, Internet Explorer 11 will no longer be receiving any new features or platform bug fixes. Only security updates will be provided to IE11 from here on … Read more

Script to change ip address on windows

You can use the Python WMI module to do this (install the PyWin32 extensions and the WMI module before running these scripts). Here is how to configure things to talk to the hardware device: import wmi # Obtain network adaptors configurations nic_configs = wmi.WMI().Win32_NetworkAdapterConfiguration(IPEnabled=True) # First network adaptor nic = nic_configs[0] # IP address, subnetmask … Read more

How to associate a program with a file type, but only for the current user?

If you want to register the association for every user, write your data to HKEY_LOCAL_MACHINE\Software\Classes If you want to register the association for the current user only, write your data to HKEY_CURRENT_USER\Software\Classes This is how to do the latter: with TRegistry.Create do try RootKey := HKEY_CURRENT_USER; if OpenKey(‘\Software\Classes\.myfile’, true) then WriteString(”, ‘MyAppDataFile’); if OpenKey(‘\Software\Classes\MyAppDataFile’, true) … Read more