Ask Experts Questions for FREE Help !
Ask
    rag84dec's Avatar
    rag84dec Posts: 4, Reputation: 1
    New Member
     
    #1

    Jul 3, 2007, 08:32 PM
    GetDriveType issue.
    Hi,
    I want to know from where my executable been executed... For example...
    If I execute it from USB I can use the following thing
    Code:
    if(GetDriveType(Exe_name)== DRIVE_CDROM ||
           GetDriveType(Exe_name)== DRIVE_REMOVABLE)
    print("Not from the local disk");
    If I execute it from a directory "like"
    Go to start->run->type "\\ip_address\exe_name"... If I execute this then how I will get to know from where I am executing?

    The "Winbase.h" has the following things or options
    #define DRIVE_UNKNOWN 0
    #define DRIVE_NO_ROOT_DIR 1
    #define DRIVE_REMOVABLE 2
    #define DRIVE_FIXED 3
    #define DRIVE_REMOTE 4
    #define DRIVE_CDROM 5
    #define DRIVE_RAMDISK 6


    Which one to select??

    Thanks
    benn11's Avatar
    benn11 Posts: 1,036, Reputation: 43
    Ultra Member
     
    #2

    Jul 5, 2007, 02:12 AM
    I see that you didn't get any response, this might be that we don't have enough programming background in C++ but you can use this website to search for your answer >>

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Getting over it! Just one issue! [ 22 Answers ]

I seem to wake up every morning with a heartache. I dream about the person almost every night. From 5 o clock and on I do fine but morning and work is terrifying! Also, I am talking to a few girls but I feel guilty because I feel like I'm doing something wrong and it doesn't feel the way it did...

I have a shower issue and venting issue [ 1 Answers ]

I have 4 showers in my house 1 downstairs and 3 upstairs. Two of the 3 upstairs have stopped having hotwater in them, shower A is a tub shower combined unit and has no hot water in it, shower B is a shower only with a jetted tub in the same bathroom but not single unit. The shower in B has no hot...

Who issue W2? [ 3 Answers ]

Hi Work summary: - Worked in a University for Jan and Feb 2006 - Worked on CPT (training) with a company from March till 1 May 06 - Worked on OPT with same company from May 1 to Dec 1 06

Is this a issue ? [ 7 Answers ]

PC : XP Pro Service pack 2 --------------------------- Start/Run <typed>MSCONFIG Looked in: Win.Ini Programs It shows: ;msconfig Luke.exe=C:\storage\calarkconnect iso\clarkconnect-2.1iso


View more questions Search