how to set destination directory path to save file

Recommended Answers

All 4 Replies

Assuming you are using a SaveFileDialog, try .InitialDirectory = "yourpath"

how to set destination directory path to save file

If this doesn’t help you, please explain your question in more detail

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

        Dim fbd As New FolderBrowserDialog
        If fbd.ShowDialog = Windows.Forms.DialogResult.OK Then
            Console.WriteLine("Selected FolderPath: " & fbd.SelectedPath)
            IO.File.Create(fbd.SelectedPath & "\Test.txt")
            Console.WriteLine(fbd.SelectedPath & "\Test.txt Created")
        End If

    End Sub

i have a question that
i have installed vb .net in some other folder other than c how can i set the path in environment variables to compile and run my programs....
m i clear. ??
plz do reply....

I suggest that you create a new thread for this question as it has nothing to do with this thread and probably won't get answered here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.