Drag and drop into a console

This is a discussion on Drag and drop into a console within the C++ Programming forums, part of the General Programming Boards category; Many moons ago, unless my mind is playing tricks on me, I'm pretty sure I dragged a file into a ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    22

    Drag and drop into a console

    Many moons ago, unless my mind is playing tricks on me, I'm pretty sure I dragged a file into a console for the console to get its filename. Does anyone know the command to do that?
    One of these days I'll the the guy with the answers and not the one with the questions. Please bare with me until then.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    The what kind of command to do what? Shell command? C command? Command to drop a file somewhere? Command to get a filename?

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,249
    Quote Originally Posted by koxson View Post
    Many moons ago, unless my mind is playing tricks on me, I'm pretty sure I dragged a file into a console for the console to get its filename. Does anyone know the command to do that?
    There is no command. Just do it. Drag from explorer into a cmd.exe Window, and it pastes the path.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  4. #4
    Registered User
    Join Date
    Aug 2008
    Location
    Belgrade, Serbia
    Posts
    163
    What do you mean by getting the file's name?

    EDIT: Too slow.. -.- @brewbuck: I didn't know that, thanks.
    Last edited by hauzer; 06-10-2009 at 07:36 PM.
    Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
    What profit hath a man of all his labour which he taketh under the sun?
    All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
    For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

  5. #5
    Registered User Sharke's Avatar
    Join Date
    Jun 2008
    Location
    NYC
    Posts
    303
    Quote Originally Posted by brewbuck View Post
    There is no command. Just do it. Drag from explorer into a cmd.exe Window, and it pastes the path.
    Didn't work for me.

  6. #6
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    On Vista and above the destination process must be running at the same or lower integrity level than the source. Eg, if the console is running elevated and the explorer isn't, it won't work. Welcome to the wonderfully teary world of UIPI.

  7. #7
    Registered User
    Join Date
    May 2008
    Posts
    22
    The what kind of command to do what? Shell command? C command? Command to drop a file somewhere? Command to get a filename?
    The command to get the filename and extention

    What do you mean by getting the file's name?
    I mean for the filename to be displayed and accepted by the program as if I had used cin to put it there but instead by using draging the file into the console.
    One of these days I'll the the guy with the answers and not the one with the questions. Please bare with me until then.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C] Drag and drop controls
    By pc2-brazil in forum Windows Programming
    Replies: 1
    Last Post: 09-02-2008, 02:41 AM
  2. DataGrid drag and drop
    By gtriarhos in forum C# Programming
    Replies: 0
    Last Post: 10-11-2005, 12:36 PM
  3. Drag and Drop using CImageList, Device contexts and BitBlt
    By MJWhiteman2 in forum Windows Programming
    Replies: 0
    Last Post: 03-03-2005, 06:22 AM
  4. Drag and drop from Internet Explorer
    By Echidna in forum Windows Programming
    Replies: 5
    Last Post: 10-02-2002, 02:14 AM
  5. drag and drop
    By depsypher in forum Windows Programming
    Replies: 2
    Last Post: 01-05-2002, 09:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21