FG
💻 Software

How to rename files located on a network path (UNC path) in Windows 7 command prompt?

Fresh5 days ago
Mar 15, 202650563 views
Confidence Score0%
0%

Problem

In the command prompt, I need a way up rename a file on a remote server. Conceptually, this is what I am looking for: Aside from using PSTools, is there a way to do this locally from the C: drive? I think I can also map a network folder to a drive letter and do it that way, but this batch file I am…

Error Output

ren \\servername\folder\file.txt \\servername\folder\file2.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to rename files located on a network path (UNC path) in Windows 7 command prompt?

Low Risk

Do not use a full path for the second argument. Only the first argument requires a full path. Windows assumes since you are renaming, the file will remain in the same folder as previously specified. It mentions this in the command help at the bottom…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment