Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: Windows Scripts and Batch Files .: VB Script to Get Parent Folder

VB Script to Get Parent Folder

Dim FSO, File1, ParentFolderPath, FileName

FileName = "GetParentFolder.vbs" ' Enter Script Filename here

Set FSO = CreateObject("Scripting.FileSystemObject")
Set File1 = FSO.GetFile(FileName)
ParentFolderPath = File1.ParentFolder
MsgBox ParentFolderPath

WScript.Quit


How helpful was this article to you?

Related Articles

article How to Assign a home folder to a user by using a logon script in 2003 server
You can automate user account creation and...

(No rating)  6-3-2008    Views: 82   
article why should'nt we remove the "ServicePackFiles" folder from my Windows folder?
The short answer is that if you remove it,...

(No rating)  5-29-2008    Views: 145   
article How to backup an Encrypted Folder or File
The following explains the procedures and...

(No rating)  5-21-2008    Views: 116   

User Comments

Add Comment
No comments have been posted.