How to Rename a Folder in VB6
Files and folders are structures used to store and organize data in Microsoft Windows. Use files to store data from your Visual Basic 6 application. If you have many different files, organize them in folders. Renaming a folder is an action often required from your application. Renaming of a folder is an effective way to archive old data from the current data.
Instructions
-
-
1
Click the "Start" icon on the Windows task bar, select "All Programs," "Accessories" and "Command Prompt."
-
2
Type "Mkdir C:\Test" at the command prompt, and press the "Enter" key, creating a folder named "Test" on the "C:" drive.
-
-
3
Type "Exit" at the command prompt and press the "Enter" key to exit the command prompt window.
-
4
Open Visual Basic 6 from the "Start" icon on the Windows task bar.
-
5
Select "Standard.EXE" option, and click the button labeled "Open."
-
6
Click the "CommandButton" icon, and draw a button on "Form1."
-
7
Double-click on the button labeled "Command1," displaying the code window.
-
8
Paste the following the text Name "C:\test" as "C:\test1" below the line "Private Sub Command1_Click():"
-
9
Press the "F5" key to execute the code, renaming the "Test" folder to "Testnew."
-
1
References
- Photo Credit Jupiterimages/Photos.com/Getty Images