Search

  • Trouble by trying to convert date

    Hello, First I'm a beginner so please be lenient. Well I'm trying to convert date in order to get the yesterday using the regionnal env of my computer ( I'm French ) So I'm able to do that : get - date - UFormat % A And getting correctly "Jeudi" ( Thursday ) I'm able to do that : (get-date).adddays(-1).dayofweek And I'm getting Wednesday but I need it in French. So 'Im regarding to do this : (get-date).adddays(-1).dayofweek -UFormat %A But without sucess, any
    Posted to Learn PowerShell (Forum) by Nicky on 04-19-2012
  • Trying to compare string return by regex from hash table

    Hello, I'm beginning to write some PowerShell scripts to check log files. I'm working with 2 hash tables $ini and $ini2 with is put inside $ini I try to use the following command line to put a regex in a variable : $base_folder = ([regex]"([_\w:\\]*)").matches($ini.$ini2["base"]) | foreach {$_.Groups[1].Value} $check = Test-Path -path $base_folder echo "--$base_folder--" $base_folder is returning something like -- D:\data\dump_base -- I'm getting some space
    Posted to PowerShell for Windows (Forum) by Nicky on 04-02-2012
Page 1 of 1 (2 items) | RSS | More Search Options
Copyright 2012 PowerShell.com. All rights reserved.