Skip to content

NinethSense oWnZ mE!

Praveen's Drawing Book

Posted on July 27, 2018July 27, 2018 by Praveen Nair

PowerShell: Reading data from a file with special charecters in path

Find the PoserShell script:


$s = Get-ChildItem -LiteralPath "D:\_[Main]\sample.txt"
$p = [System.IO.File]::ReadAllText($s)
Write-Host $p
CategoriesCode, Technology TagsPowerShell

Post navigation

Previous PostPrevious K-MUG organizing Microsoft Cognitive Services Day | 28 July 2018
Next PostNext Azure Reference Architectures

Where are my old posts?

Where did my old post go?

Recent Posts

  • Video: Create dotnet console application using CLI
  • Create a .NET console application using command line
  • JavaScript Notification API for beginners
  • Became Microsoft Certified Azure Solutions Architect Expert
  • Dapr: The distributed application runtime is now production ready

Archives

  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • November 2019
  • October 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • November 2018
  • October 2018
  • September 2018
  • July 2018
  • June 2018
  • April 2018
  • March 2018
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017

Categories

  • Architecture
  • Articles
  • Bookmark
  • Business Intelligence
  • Cloud Computing
  • Code
  • Data
  • Data Science
  • Database
  • Events
  • General
  • Personal
  • Technology
  • Tips & Tricks
  • Videos
  • Vlog

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress