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

Answer Posted / ranadheer

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what is the main difference between function and sub-procedure?

552


How to open a file. What is the perpose of true and false mode there?

612


i need to sort the data using qtp script for this how i need to write a qtp script

3221


Explain the support of asp for vb script functionality?

637


Explain about operator precedence in vb script?

577






Why is the use of exit do or exit for statements within loops discouraged?

569


What is vbscript procedures?

602


What are the data types supported by vbscript?

580


Mention what is byref and byval parameters in vbscript?

579


How will you convert a string to lower case string using vbscript?

560


What are the naming conventions while declaring a variable in the vbscript language?

619


Explain about vb script?

751


How can you create a file object to work with the files in the vbscript language?

510


How to write VB script for login module?

2678


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1511