Open Folder on Click  
Author Message
dustinto





PostPosted: Visual Basic Express Edition, Open Folder on Click Top

Okay I figured out how to create folders now how can I tell VB to open a folder after the folder is created

It will only open one folder.

Thanks




Visual Studio Express Editions35  
 
 
dustinto





PostPosted: Visual Basic Express Edition, Open Folder on Click Top

Think I might have found it in a search.

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=384678&SiteID=1

my first search didnt turn up much but I changed the wording and found that...ill try it and see if it works



 
 
Tall Dude





PostPosted: Visual Basic Express Edition, Open Folder on Click Top

If you want to continue in the mode you first started in, (programming of

moving files into new folders in VB,) try playing with code like this basic

example:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

My.Computer.FileSystem.CurrentDirectory = "c:\aaa"

My.Computer.FileSystem.CopyFile("c:\test.doc", "test.doc")

End Sub

--------------------------------------------------------------------------------------------------------------------------------------------------------

Ah, the good old days when we made batch files to do this stuff

rem select drive
c:
rem Change Directory to root location to create folders at
cd \aaa
rem Make directory
md "%1"
rem go to new directory(folder) (Change Directory)
cd "%1"
rem make another directory(folder)
md "%2"