Skip to main content

Posts

Showing posts from April, 2019

Working with text in PowerShell

Working with a text file or text format in PowerShell is a good thing to learn. Getting or monitoring output from PowerShell for further processing or analysis and having it in text file format can easily be imported to other applications. Working with text or other format, requires these basic operations: S ave, Overwrite, Append and Save As. Save, overwrite, append and save as is a common operation when editing word documents, excel file and other office applications since it’s freely available on the menu of the application. But can we do this in PowerShell? The answer is a resounding, yes. So, how to do it? Examples below shows how to work with text files in PowerShell and do the operation mentioned above. Equivalent operations for Save, Overwrite, Append and Save As in PowerShell: ===Set-content ==== will overwrite the file ===Add-content ==== will just add or append something to the file ===Out-File ==== is like "Save As" since you ...

Disable Maximize and Minimize control in a form using Visual Studio

How to disable minimizing and maximizing a form in C# or VB.net? How to create a border less form in Visual Studio? Images below shows how to disable maximize and minimize control in a form. Image below shows how to deactivate maximize option in a form: Image of a form that does not allow maximizing: Image below shows how to create a border less form, creating a border less form should provide an option within the form how to close the application. Image of a border less form: Till next time.. Have fun creating apps in Visual Studio... ================================ Free Android Apps: Click  links below to find out more: Excel Keyboard guide: https://play.google.com/store/apps/details?id=chrisjoms.myexcelapplicationguide Heaven's Dew Fall  Prayer app for Android : https://play.google.com/store/apps/details?id=soulrefresh.beautifu...

Add a remote folder in Linux

Adding a remote folder in Linux or basically mounting a folder in Linux system is quite easy. Like in copying and moving files or folder, it requires a source and a destination. A simple copy command in Linux is:   cp --source or any file to be copied--  --destination or where to copy the file-- In mounting a folder, using mount command does require also a source and a destination. man mount will display the available options for this command. Since source and destination is a pre-requisite in cp, mv or   mount command. In mounting a remote folder, the destination folder must be ready or created first before typing the mount command. Linux has default destination for mounting folder which is /mnt folder. Mounting a remote folder can be also done on other location such /home /usr or other preferred locations. To mount a folder in /mnt directory, a sub folder must be created first. To create a folder, type: mkdir /mnt/rem...