write a vb script to rename a folder from tree4 to tree7

Answers were Sorted based on User's Feedback



write a vb script to rename a folder from tree4 to tree7..

Answer / ranadheer

dim vfso
set vfso=createobject("scripting.filesystemobject")
vfso.renamefolder "C:\tree4","C:\tree7"

Is This Answer Correct ?    1 Yes 0 No

write a vb script to rename a folder from tree4 to tree7..

Answer / usha

set fso=createobject("scripting.filesystemobject")
set f=fso.getfolder("C:Tree4")

f.name="Tree7"

Is This Answer Correct ?    0 Yes 0 No

write a vb script to rename a folder from tree4 to tree7..

Answer / mudaseer



dim vfso
set vfso=createobject("scripting.filesystemobject")
vfso.movefolder "C:\tree4","C:\tree7"

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More VB Script Interview Questions

How can you have different number of cells for each row of a table in HTML?

2 Answers  


Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.

0 Answers   CSC,


How do you create a recordset object in VBScript?

3 Answers  


Why is it recommended to close the database connection every time after the work is completed?

0 Answers  


accept a string & display whether a is present or not

1 Answers  






What are keywords in the vbscript language?

0 Answers  


What is the use of the recordset object and which statement is used to create such an object?

0 Answers  


how to get date format from system locale..format means neither long nor shor... format from system locale. i need like your date is mm/dd/yyyy formate or mm-dd-yy or with time like that. how to get.

2 Answers  


Description.Create

0 Answers   IBM,


1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting

3 Answers  


What is the difference between do until loop and do while loop?

0 Answers  


what is diff between static and dynaic arrys?

0 Answers  


Categories