MakeCab: Compressing large folders into single .CAB file for less size on the disk

One needs to create a DIAMOND DIRECTIVE FILE (*.DDF) which is used as a configuration file by makecab.exe to set the runtime environment as defined in the .ddf file.   Example: Source Folder contents to be compress:   PS C:>  Get-ChildItem C:TempSkype -Recurse | Where {!$_.PsIsContainer} | Select-Object -Property FullName FullName ——– C:TempSkypeAppsloginindex.html C:TempSkypeAppslogincsslogin.css C:TempSkypeAppslogincssplatformmac.css C:TempSkypeAppslogincssplatformwin.css C:TempSkypeAppslogincssretinalogin.css C:TempSkypeAppsloginimagesbackground.png C:TempSkypeAppsloginjslogin.js C:TempSkypeAppsloginlanguagesar.js C:TempSkypeAppsloginlanguagesvi.js C:TempSkypeAppsloginlanguageszh-hans.js C:TempSkypeAppsloginlanguageszh-hant.js C:TempSkype{4E76FF7E-AEBA-4C87-B788-CD47E5425B9D}Skype.msi PS C:>   DDF file: If you do NOT specify the MaxDiskSize it’s uses 1.4M and creates multiple .cab files of 1.4MB till all the files in the source folder are converted into .cab files.   […]

Read more

PowerShell Regular Expression: Find and Replace default username with current username in an .XML configuration file

I’ve below Config file in which there are multiple instances of user profile path (C:UsersCoreluser001.Testlab.*).  This user profile path points to a default user and needs to be updated to the currently logged on user profile path (C:Users<username>.*).   PS C:> grep -i "Coreluser001" C:TempCorelConnect-Default.config <AppPrefs xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" TrayRootDirectory="C:UsersCoreluser001.TestlabDocumentsCorelCorel ContentTrays" SelectedTray="C:UsersCoreluser001.TestlabDocumentsCorelCorel ContentTraysTray">     <Folder Provider="6253a437-710e-4bda-9e51-052b9f3f41c1" LanguageIndex="0" DisplayContentIndex="0" NumResultsIndex="0" IsSearched="true" IsActivated="true" StoredTitle="Documents" Path="C:UsersCoreluser001.TestlabDocuments" />     <Folder Provider="6253a437-710e-4bda-9e51-052b9f3f41c1" LanguageIndex="0" DisplayContentIndex="0" NumResultsIndex="0" IsSearched="false" IsActivated="true" StoredTitle="My Pictures" Path="C:UsersCoreluser001.TestlabPictures" />     <Folder Provider="6253a437-710e-4bda-9e51-052b9f3f41c1" LanguageIndex="0" DisplayContentIndex="0" NumResultsIndex="0" IsSearched="true" IsActivated="true" StoredTitle="Desktop" Path="C:UsersCoreluser001.TestlabDesktop" />     <Searchable xsi:type="Folder" Provider="6253a437-710e-4bda-9e51-052b9f3f41c1" LanguageIndex="0" DisplayContentIndex="0" NumResultsIndex="0" IsSearched="true  IsActivated="true" StoredTitle="Desktop" Path="C:UsersCoreluser001.TestlabDesktop" />     <Searchable […]

Read more

Configuring/Changing/Updating DNS servers list on GNU/Linux System

Linux System Configuration: login as: root root@xxx.xxx.xxx.xxx’s password: Last login: Fri Oct 25 07:04:21 2013 from xxx.xxx.xxx.xxx Linux temp-sys 2.6.15-29-amd64-server #1 SMP Mon Sep 24 17:31:58 UTC 2007 x86_64                                                                                         GNU/Linux The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@temp-sys:~#   Checking the list of existing DNS servers configured on the DNS server:   root@temp-sys:/var/named# nslookup www.xenapp.testdom.net ;; connection timed out; no servers could be reached root@temp-sys:/var/named# root@temp-sys:/var/named# cat /etc/resolv.conf #search […]

Read more