Skip to main content

Posts

Showing posts from September, 2016

Windows 7 black screen after windows logo

Windows 7 just show a black screen, after showing the windows logo on startup. On Windows startup with the black screen, try pressing caps lock key. If caps lock key respond normally, then there’s a chance that windows boot up properly. Press the power button for 3 seconds and release it. If windows shutdown properly, turn on the computer again. This time, try pressing F8 to go to safe mode. In safe mode, open device manager. Open windows explorer, right click on “This Computer” or “My Computer” and select properties, this will open device manager.  Or alternatively, go to control panel and select device manager. In Device Manager, select the Display Adapter, right click on it and click properties. From the properties, uninstall the driver. Don’t worry windows will install its standard or default display driver. Restart or shutdown the computer, if the problem is just the corrupted display driver then startup should be working  fine and the black screen issue is not

Copy folder/file to multiple folders

Copy a single folder to multiple folders? Copy a file to multiple folders? This can be done easily using PowerShell script. Script below requires PS 3.0, but it can easily be tweak for other version. Here's the script: #++++++++++++++++++++++++++++++ $source_folder="D:\xfolder\United Folders" dir -Directory "D:\Unity\Project_016\" | ForEach-Object { write-host $_.fullname Copy-Item -Path $source_folder -Destination $_.FullName } #++++++++++++++++++++++++++++++ What the script does is the $source_folder is to be copied to all folders in the destination. Basically, the "United Folders" is to be copied to the root of the sub folder in destination folder which is "D:\Unity\Project_016\". Example: D:\Unity\Project_016\01 D:\Unity\Project_016\02 D:\Unity\Project_016\03 After executing the script, the folders will look like this: D:\Unity\Project_016\01\United Folders D:\Unity\Project_016\02\United Folders D:\Unity\Project