Hello,
First Time user to this forum: I have a excel file called "Final_Output_z.xlsx. I am using the following in my Powershell to add the Date and Time but keep running into error:
Rename-Item : A positional parameter cannot be found that accepts argument '11/16/2018 10:57:42 AM'.
At line:1 char:1
+ Rename-Item -Path "C:\Users\Documents\MicroApps\SCAPH_AC ...
Powershell code I am using:
Rename-Item -Path "C:\Users\Documents\MicroApps\SCAPH_ACL_Project\1_SCAPH_Main\Final_Output_z.xlsx" -NewName "Final_Output_z.xlsx" (Get-Date) -format "yyyy MMM d"
WASP56
First Time user to this forum: I have a excel file called "Final_Output_z.xlsx. I am using the following in my Powershell to add the Date and Time but keep running into error:
Rename-Item : A positional parameter cannot be found that accepts argument '11/16/2018 10:57:42 AM'.
At line:1 char:1
+ Rename-Item -Path "C:\Users\Documents\MicroApps\SCAPH_AC ...
Powershell code I am using:
Rename-Item -Path "C:\Users\Documents\MicroApps\SCAPH_ACL_Project\1_SCAPH_Main\Final_Output_z.xlsx" -NewName "Final_Output_z.xlsx" (Get-Date) -format "yyyy MMM d"
WASP56