Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Resolve program for Win 7 X64

06 Jan 2011   #11
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

If you would like a pure OS solution.

Open a command prompt and enter:

Code:
 
dir /s xcopy.exe | find /i "directory"
 
or
 
dir /s xcopy.* | find /i "directory"
-WS

Edit:

or

Code:
 
attrib xcopy.exe /s



My System SpecsSystem Spec
.
07 Jan 2011   #12
Ztruker

Windows 10 Pro X64
 
 

I understand that and sometimes do so, but it's not the same at all and would be very slow.

There must (should?) be a way to query the OS for the path an executable resides in.
My System SpecsSystem Spec
07 Jan 2011   #13
Mike Connor

Several, including Windows 7 x64 Ultimate
 
 

Application.ExecutablePath Property (System.Windows.Forms)

<http://msdn.microsoft.com/en-us/library/system.windows.forms.application.executablepath.aspx>

Regards....Mike Connor
My System SpecsSystem Spec
.

07 Jan 2011   #14
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by Ztruker View Post
I understand that and sometimes do so, but it's not the same at all and would be very slow.

There must (should?) be a way to query the OS for the path an executable resides in.
Humm, just searched my 2TB drive for readme.txt with dir /s readme.txt |find /i "Directory" which there are a lot of those files. And it did not take too long. System found over 500 files in about 30 seconds. I did the same search within Windows Explorer and it took 60 seconds. How much faster does it need to be??
My System SpecsSystem Spec
08 Jan 2011   #15
Ztruker

Windows 10 Pro X64
 
 

Well, instantaneous or 1 to 2 seconds would be nice. It takes the OS less than that to determine if a command I type is valid or not so why isn't it possible to query the OS in a similar way?
My System SpecsSystem Spec
08 Jan 2011   #16
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by Ztruker View Post
Well, instantaneous or 1 to 2 seconds would be nice. It takes the OS less than that to determine if a command I type is valid or not so why isn't it possible to query the OS in a similar way?
Because you are searching a hard drive. Hard drives are mechanical and slow by most standards. It is only now-a-days that we have SSD replacements for your hard drive, however even these are slow, much faster than a mechanical hard drive but still slow. To have a super fast look up you would need very fast memory (expensive). The way Microsoft has gotten around this is to index the drive which makes the searches much faster so my search of a 2TB drive at 30 seconds is amazing.

I remember back in the day when I had an 850MB hard drive and it took 5 minutes to search the whole drive.

(Please note I am being extremely general here, I know there are other ways to make the search faster, I am only providing a simple general explanation here.)
My System SpecsSystem Spec
09 Jan 2011   #17
Ztruker

Windows 10 Pro X64
 
 

Sorry. Either I did not explain myself well or I'm just not getting my point across.

I do not want to search the hard drive. I want a way to ask the OS where a specific command will be executed from. That's what resolve did, from OS/2 through all the releases of Windows through XP until now as it will not work in X64. I don't have the source code, just the executable.

My original post was:
Quote:
I had a program called resolve that I could run that would tell me where a command would be executed from. For instance, if I entered

resolve xcopy

It would respond with

C:\Windows\System32\xcopy.exe
In OS/2 it would even tell me if the command was supported by cmd.exe and not a stand alone program (like xcopy).
My System SpecsSystem Spec
09 Jan 2011   #18
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

@Ztruker

I guess you are right I don't understand. Can you upload the program and I can try it on my XP machine to understand what it does??
My System SpecsSystem Spec
09 Jan 2011   #19
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

@Ztruker

I see your posts in all the other forums and all over the internet for this. In those posts you were looking for a VBS solution. If you still are I can create one. I just need to know how you are going to use it and what it really does. Thanks.
My System SpecsSystem Spec
10 Jan 2011   #20
Ztruker

Windows 10 Pro X64
 
 

This is what it looks like for me in XP Mode:
Quote:
C:\Documents and Settings\XPMUser>resolve xcopy

C:\WINDOWS\system32\xcopy.EXE

C:\DOCUME~1\XPMUser>resolve netsh

C:\WINDOWS\system32\netsh.EXE

C:\DOCUME~1\XPMUser>resolve copy

Program not found

C:\DOCUME~1\XPMUser>
Under OS/2, resolve xcopy would have returned cmd.exe since copy is built into cmd.exe, not an external command.


This is the executable: RESOLVE.zip


My System SpecsSystem Spec
Reply

 Resolve program for Win 7 X64




Thread Tools




Similar help and support threads
Thread Forum
bex error - how can i resolve this
when i open origin it crashes.i cannot login this is the error Problem signature: Problem Event Name: BEX Application Name: Origin.exe Application Version: 9.4.7.2799 Application Timestamp: 534f0142 Fault Module Name: MSVCR100.dll Fault Module Version: 10.0.40219.325
Gaming
How do I resolve BSOD
Hello! I am in a tough spot and I would really appreciate your help. I have been repeatedly getting BSOD, it happens about 30 sec after I log in at start-up. I am uploading my msinfo32 file, could you take a look at it? Thank you in advance :)
BSOD Help and Support
Can't resolve this BSOD, need some help.
Well, I built a computer specifically to run FSX well in March. Just recently, it's started to chuck out random BSODs with random BCCodes, but generally the same file was the main problem, ntoskrnl.exe. The only changes I've made to the system recently before it started happening is upgrading...
BSOD Help and Support
tns: could not resolve service name
Hi, I am getting the following message on Windows 7 machine: "tns: could not resolve service name" when connecting Toad to a database. The same was working fine on the Windows XP machine. Can anyone please help. Thanks in advance.
System Security
A few problems to resolve.
Hi forum users I have a few W7 problems . . . Auto disc play doesn't work now as of last week after using Ccleaner. I have backups of the registry files before Ccleaner was used but not sure if this a registry problem. Can't use recovery, I get errors saying: An unspecified error...
Performance & Maintenance
Please help me resolve this
I discovered a HUGE flaw in windows 7, thats really been bugging me since it leaves my computer wide open. For some reason by default my username and all of the files inside of my user folder are automatically shared. I want to know how to get rid of this ASAP! I don't use FTP, I don't even...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:18.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App