Solved

Script to Rename a file at a specified time

Posted on 2014-10-22
1
55 Views
Last Modified: 2014-11-27
Need a script to do the following

Run at a specified
Rename the file following a specific naming convention
0
Comment
Question by:shamnad
1 Comment
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 40398027
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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now