Autorun

  • Thread starter Thread starter duha
  • Start date Start date
D

duha

Writing my own flash screen and autorun.exe in VB .NET.



In most commercial packages the autorun flash screen includes at least three
buttons: "Install", "Browse CD" and "Quit." Hitting the "Browse CD" button
displays a directory of the CD , then exits, leaving the directory on
display.



I want my "Browse CD" button to show the root of the the CD then end the
program. But all I can get it to do is end the program.



Any suggestions on how to do this?
 
I replaced the --Path.GetPathRoot(Application.ExecutablePath) with --
CurDir() and that did it. Thanks.
 
I replaced the --Path.GetPathRoot(Application.ExecutablePath) with --
CurDir() and that did it. Thanks.

Why? The current directory isn't necessarily the same as the disc
drive root directory.



Mattias
 
You are right, excpet I am getting an error at design time 'Path' in the
'Path.GetPathRoot' is not declared

duha
 
You are right, excpet I am getting an error at design time 'Path' in the
'Path.GetPathRoot' is not declared

The Path class is located in the System.IO namespace so you either
have to Import that or fully qualify it as
System.IO.Path.GetPathRoot()



Mattias
 
Does it really show that I am a novice programmer :-) I fully qualified and
it worked. How do you import? Thanks

Duha
 
Back
Top