I'm just missing around with vb and have questions?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: I'm just missing around with vb and have questions?

  1. #1
    Join Date
    Oct 2012
    Posts
    6

    Question I'm just missing around with vb and have questions?

    Hi, Everyone at codeguru I'm just missing around with vb6.0 and I just want to know if there's away to do this.
    My question is. There away to make my program look in a drive that I have made called G:\ and in that drive I have these files
    1:G:\root
    2:G:\root\Documents
    3:G:\root\Pictures
    4:G:\root\Music
    5:G:\root\Videos

    Now I have made a like explorer to view files on my system, what I'm asking is there away to let my program only show just the G:\ drive and whats in it, every time I try to do that it just shows all files in every drive like c:\ and every drive I just want the file explorer to show G:\ and all files in it and nothing else, I hope I'm making sense. thanks everyone If you don't know what I'm talking about just ask me.

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    15,002

    Re: I'm just missing around with vb and have questions?

    try using the SHELL command. "shell explorer G:" or try from the command prompt: explorer /? for other options.
    You could always MAP that drive, using NET USE /?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Oct 2012
    Posts
    6

    Re: I'm just missing around with vb and have questions?

    ok thanks, I will try that now

  4. #4
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,861

    Re: I'm just missing around with vb and have questions?

    Hard to say depends on how you made this
    I have made a like explorer to view files on my system
    If you only want them to be able to view one drive then you could just not give an option to switch drives and set that one initially

    Shelling to Explorer with a Drive letter will launch Explorer and it will start initially showing that drive the other drives will also be accessible via the drop down

    But then if you are working with something you wrote that would have nothing to do with your software

    I'm not really sure what you have now so if that doesn't help then perhaps some clarification is in order
    Always use [code][/code] tags when posting code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center