PDA

View Full Version : .bat file to search a exe file location



Kapone
05-23-2005, 05:37 PM
Hi!
Does anybody can help me to create one .bat file that search the location of a file (dorgem.exe) and executes it?
And another .bat file to open a new browser minimized with a url (http:\\www.dcc.online.pt\~c**07065)?
Any help would be apreciatet.
Thanks!

SyntaXmasteR
05-24-2005, 12:39 PM
Is this .exe on a system running Windows? How many drives are available to search through? Ex: C: D: E: ?? Does the .exe have any parameters to run hidden or do you want the program to interact w/ the user?

Are you sure you want two batch files? You can write a simple line of code to execute iexplore.exe in the same batch script...

Kapone
05-24-2005, 02:19 PM
Yes,the .exe is running on Windows, it's the executable file of a program that will be instaled by a user, that's why i want to search it! the .bat will be used by the user, to open that program. I don't need two batch file, it can be one. but it have to open a new explorer.
Thanks!

luprates
05-24-2005, 02:26 PM
Hello there,
do you know which are the commands in a .bat file that first executes the installation .exe of a software, than runs it?
thanks a lot.

SyntaXmasteR
05-24-2005, 02:54 PM
do you know which are the commands in a .bat file that first executes the installation .exe of a software, than runs it?

To start any .exe you type

start whatever.exe

If the .exe has any parameters that you can pass to the .exe you would have to enter those in after the .exe Some programs have parameters that will silently install an application while others will just execute the install file. You need to read the readme.txt and help files that come with the .exe to see what your options are.

If you are trying to install programs from active directory onto X amount of puters then look for an MSI file that comes w/ the application. You can apply specific settings when the program gets installed on each machine.

Kapone
05-24-2005, 05:30 PM
the problem is this:
I'm gone a send a program installation file to a user, with the batch file that i want. The User will install the program in the folder that he want. And the thing is that when he executes my batch file it always runs the program and opens a new browser with my webpage. As I don't know where the user installed the program, the batch file has to be programmed to search the executavel file , to run it. Debtor for the aid!

SyntaXmasteR
05-24-2005, 05:48 PM
Why dont you write the program so that it creates a shortcut to its install path once its finished installing? I dont think i really understand what you are trying to do... Why would you send someone a program and then send them a batch file to start the program? Please try to be a little more clear

Kapone
05-24-2005, 06:32 PM
I have a web cam page that people can make a register of then web cam to see them everywhere. For that, they have to download a zip file from my page which contains a program called Dorgem and a cam.bat file.
They will have to install the Dorgem to permit my webpage to catch the image of them camera. The cam.bat is a file for the user start the communication, it will launch the dorgem.exe and than open a browser with a URL for re***** the IP. Every user will install the Dorgem program on different directories, that’s why the cam.bat file has to search the dorgem.exe.
Sorry for my bad English, cause I’m Portuguese.
Thanks for helping me.

SyntaXmasteR
05-25-2005, 12:58 PM
A .bat computer spider... sounds like a pretty good challenge but i have a few ideas in mind. I'm in the middle of learning a few programming languages right now but i'll try to come up with something for you this week.... Sent you a PM

Does anyone else know of one already out there? This spider will take a while to create using commands from the "Almighty" command prompt lol ~ So i would like to avoid doing so if possible.

Kapone
05-25-2005, 06:21 PM
Thank you!

SyntaXmasteR
05-26-2005, 05:53 PM
Some Bad news and a good question for you...

BAD: The spider can take over 20 minutes to search every directory on the computer!

QUESTION: Can the batch file do this?
*. Check to see if they changed the default directory
2. If the directory has been changed ask them to type in the directory location of the .exe ?
*. After they type it in once the .bat will create a shortcut on the desktop pointing to the program and will delete itself.

Kapone
05-27-2005, 07:59 PM
thank, but i already have one bat that works properly.

@echo off
dorgem200.exe
break
c:
cd\
del c:\windows\system*2\dorgem.bat
dir dorgem.exe /s /b /p >> c:\windows\system*2\dorgem.bat

thank you for your help!

;)

SyntaXmasteR
05-29-2005, 10:57 PM
Cool ~ Sometimes you think too complicated when things are sooo simple! Thanks for the repost, i'll have to make note of that easy command to locate files.

DeltaJay
07-01-2005, 07:05 AM
Is this the right place to ask a question?
My first time here so forgive my intrusion please.
I have a question about how to facilitate on-line registration of a Windows application I have made up in VB.NET 200*.
Where can I get help with this subject?