![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Need Help renaming a folder on a remote server I am attempting to rename a folder on a remote server and I have not found any good info on how best to do this. All I am looking for right now is to take a name of a folder (in a variable) and rename it to a new foldername from another variable) This will be done on a variety of servers remotely. Please help. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Need Help renaming a folder on a remote server "rkimball" <rkimball@xxxxxx> wrote in message news:3C622A17-A642-4A0F-9D34-3A8C27104197@xxxxxx Quote: >I am attempting to rename a folder on a remote server and I have not found > any good info on how best to do this. All I am looking for right now is > to > take a name of a folder (in a variable) and rename it to a new foldername > from another variable) This will be done on a variety of servers > remotely. > Please help. a) With VB Script Set oFSO = CreateObject("Scripting.FileSystemObject") sOldName = "\\Pegasus\d$\Test1" sNewName = "Test2" oFSO.GetFolder(sOldName).Name = sNewName b) With a batch file @echo off OldName=\\Pegasus\d$\Test1 NewName=Test2 ren "%OldName%" "%NewName%" |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Folder renaming problem | General Discussion | |||
Problems While Renaming Any Folder | General Discussion | |||
| Renaming a folder? | Vista file management | |||
| unable to access remote server if offline folder is on | Vista networking & sharing | |||
| Folder creation and renaming | Vista file management | |||