Delphianrex Posted September 23, 2007 Share Posted September 23, 2007 hi all people out there i`de like to know what command is that windows has used to open folders,drives,etci mean when you right click on a drive or folder the first command in the menu is "Open".okand as you know,a command must have been pre-definded in the registry to do a task when you click on the "Open".I need this commandor if there is an exe file that if you open it, it`ll go(open) to the path which it is located in, like windows Open command. whats that?Thanks in advanced Link to comment Share on other sites More sharing options...
spacesurfer Posted September 23, 2007 Share Posted September 23, 2007 The "open" command simply opens the file/folder that is clicked using the default program set in the registry. For example, it is a pdf document and you have Acrobat Reader installed, then clicking on open (or double clicking) will open that file using Acrobat Reader. In the registry, it will look something like this: "c:\program files\adobe\reader\acroread.exe" "%1"where acroread.exe is the executable that opens acrobat and %1 is the variable for the file you double-clicked.Anyway, if you go to folder options, then look for the extension of the file, for example, doc, then click on advanced, you will see all the commands in the right-click menu and the commands that are run when clicking on them. So, doc will have open, print, edit, etc. Click on open, then click on edit and you'll see the command that is run to open the doc file.Or you can go to the registry but I'm not going to explain that here. Link to comment Share on other sites More sharing options...
Ponch Posted September 23, 2007 Share Posted September 23, 2007 i mean when you right click on a drive or folderHe didn't ask about opening a file.I'm no expert but for instance, if you type "EXPLORER D:", it opens D:. There must be lots of options like having folder pane or view type. Link to comment Share on other sites More sharing options...
eidenk Posted September 23, 2007 Share Posted September 23, 2007 In the registry under HKEY_CLASSES_ROOT\Folder\shell\Open you'll find the command to open drives and folders. Link to comment Share on other sites More sharing options...
spacesurfer Posted September 24, 2007 Share Posted September 24, 2007 he wrote folders, drives, etc. in the second sentence. i answered his questions based on how i interpreted his question. Link to comment Share on other sites More sharing options...
Delphianrex Posted September 24, 2007 Author Share Posted September 24, 2007 thanks all guys for your replies especially PONCH .it was an interesting winxp tip!!!if i`m not wrong this must the thing i want but if i run explorer.exe with a defined path, it`ll just open that path.I WONDER IF I PUT EXPLORER.EXE IN A FOLDER, HOW I CAN RUN IT LIKE POCH`S INSTRUCTION BUT TO OPEN THE FOLDER WHICH IT`S LOCATED Link to comment Share on other sites More sharing options...
Arie Posted September 25, 2007 Share Posted September 25, 2007 I WONDER IF I PUT EXPLORER.EXE IN A FOLDER, HOW I CAN RUN IT LIKE POCH`S INSTRUCTION BUT TO OPEN THE FOLDER WHICH IT`S LOCATEDNo need to scream, we hear you.Why would you want this? You could simply right-click on a folder and choose to Explore? I don't understand why you would want this and why you would want to copy explorer.exe all over your hard disk; if it's in your path, which it is by default, you don't have any need to have it copied to anywhere. Link to comment Share on other sites More sharing options...
spacesurfer Posted September 27, 2007 Share Posted September 27, 2007 (edited) The original poster did not mention he wants to open a folder or drive from the command prompt. Hence, his post is vague. I hasn't mentioned what he's trying to accomplished. Again vague. Once can only wonder with a post like that.Anyway, explorer d: will certainly open the d: drive from the command prompt. However, from the run box, you simply need to type d:.Again, as already mentioned, I don't see his purpose in copying explorer everywhere. His posts are unclear as to what he's trying to accomplish.It should be a clue to the original poster - what are you trying to accomplish? Edited September 27, 2007 by spacesurfer Link to comment Share on other sites More sharing options...
Yzöwl Posted September 28, 2007 Share Posted September 28, 2007 Let the games begin!Do you wish to, (probably by way of some sort of script), have an explorer window open with its root based either in the directory or relative to that of the running script. Link to comment Share on other sites More sharing options...
Delphianrex Posted October 23, 2007 Author Share Posted October 23, 2007 i`m really sorry.to tell the truth i want to put an exe file in my usb storage to be executed as Autorun.okbut my problem is that when it gets executed,the drive wont be opened anymore!!!i think you must have got what i mean, isnt it???i want to have them done simultanesly. when the user double clicks on the drive, the drive should be opened normally but the exe file should be run at the sametimei appologize again for distracting you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now