• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 70
  • Last Modified:

Script to Rename a file at a specified time

Need a script to do the following

Run at a specified
Rename the file following a specific naming convention
0
shamnad
Asked:
shamnad
1 Solution
 
becraigCommented:
Easiest might be a do a scheduled task for a powershell one liner


the powershell piece would be like this:
if (Test-Path -Path C:\Path-to-file\file.ext) {Rename-Item C:\Path-to-file\file.ext <newname> -Force -recurse}

Open in new window

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now