What’s the environment variable for the path to the desktop?

To be safe, you should use the proper APIs in Powershell (or VBScript) Using PowerShell: [Environment]::GetFolderPath(“Desktop”) Copy something using Powershell: Copy-Item $home\*.txt ([Environment]::GetFolderPath(“Desktop”)) Here is a VBScript-example to get the desktop path: dim WSHShell, desktop, pathstring, objFSO set objFSO=CreateObject(“Scripting.FileSystemObject”) Set WSHshell = CreateObject(“WScript.Shell”) desktop = WSHShell.SpecialFolders(“Desktop”) pathstring = objFSO.GetAbsolutePathName(desktop) WScript.Echo pathstring

Limitations of Visual Studio 2012 Express Desktop

There are few limitation I can gather : First of all there are different IDE’s for different use Visual Studio Express 2012 for Web. Visual Studio Express 2012 for Windows 8 Visual Studio Express 2012 for Windows Desktop. Visual Studio Team Foundation Server Express 2012 Express editions of the IDE omit the following features included … Read more

Change desktop wallpaper using code in .NET

Here’s a class yanked from an app I wrote a year or two ago: public sealed class Wallpaper { Wallpaper() { } const int SPI_SETDESKWALLPAPER = 20; const int SPIF_UPDATEINIFILE = 0x01; const int SPIF_SENDWININICHANGE = 0x02; [DllImport(“user32.dll”, CharSet = CharSet.Auto)] static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni); public enum Style … Read more

How to center a component in Material UI and make it responsive?

Since you are going to use this on a login page. Here is a code I used in a Login page using Material-UI MUI v5 <Grid container spacing={0} direction=”column” alignItems=”center” justifyContent=”center” style={{ minHeight: ‘100vh’ }} > <Grid item xs={3}> <LoginForm /> </Grid> </Grid> MUI v4 and below <Grid container spacing={0} direction=”column” alignItems=”center” justify=”center” style={{ minHeight: … Read more