+ Reply to Thread
Results 1 to 14 of 14
-
05-23-2005, 05:37 PM #1Kapone Guest
.bat file to search a exe file location
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:\\[url]www.dcc.online.pt\~c9907065)?[/url]
Any help would be apreciatet.
Thanks!
-
05-24-2005, 12:39 PM #2
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...Last edited by SyntaXmasteR; 05-24-2005 at 12:51 PM. Reason: Added Question
[url=http://www.syntaxmaster.info/tools/services.php]Speed Up Windows XP[/url]
[url=http://www.syntaxmaster.info/tools/ip.php]Get An Ip Address[/url]
[url=http://www.syntaxmaster.info/tools/base_converter.php]Base Converter[/url]
--------------------------------
[URL=http://www.boninroad.com/syntaxmaster/]Old Site[/URL]
[URL=http://www.syntaxmaster.info]Comming Soon[/URL]
-
05-24-2005, 02:19 PM #3Kapone Guest
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!
-
05-24-2005, 02:26 PM #4
Registered User
- Join Date
- May 2005
- Posts
- 2
.bat info
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.
-
05-24-2005, 02:54 PM #5To start any .exe you typedo you know which are the commands in a .bat file that first executes the installation .exe of a software, than runs it?
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.Code:start whatever.exe
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.[url=http://www.syntaxmaster.info/tools/services.php]Speed Up Windows XP[/url]
[url=http://www.syntaxmaster.info/tools/ip.php]Get An Ip Address[/url]
[url=http://www.syntaxmaster.info/tools/base_converter.php]Base Converter[/url]
--------------------------------
[URL=http://www.boninroad.com/syntaxmaster/]Old Site[/URL]
[URL=http://www.syntaxmaster.info]Comming Soon[/URL]
-
05-24-2005, 05:30 PM #6Kapone Guest
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!
-
05-24-2005, 05:48 PM #7
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
[url=http://www.syntaxmaster.info/tools/services.php]Speed Up Windows XP[/url]
[url=http://www.syntaxmaster.info/tools/ip.php]Get An Ip Address[/url]
[url=http://www.syntaxmaster.info/tools/base_converter.php]Base Converter[/url]
--------------------------------
[URL=http://www.boninroad.com/syntaxmaster/]Old Site[/URL]
[URL=http://www.syntaxmaster.info]Comming Soon[/URL]
-
05-24-2005, 06:32 PM #8
Registered User
- Join Date
- May 2005
- Posts
- 3
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 refresh 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.
-
05-25-2005, 12:58 PM #9
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.[url=http://www.syntaxmaster.info/tools/services.php]Speed Up Windows XP[/url]
[url=http://www.syntaxmaster.info/tools/ip.php]Get An Ip Address[/url]
[url=http://www.syntaxmaster.info/tools/base_converter.php]Base Converter[/url]
--------------------------------
[URL=http://www.boninroad.com/syntaxmaster/]Old Site[/URL]
[URL=http://www.syntaxmaster.info]Comming Soon[/URL]
-
05-25-2005, 06:21 PM #10
Registered User
- Join Date
- May 2005
- Posts
- 3
Thank you!
-
05-26-2005, 05:53 PM #11
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?
1. 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 ?
3. After they type it in once the .bat will create a shortcut on the desktop pointing to the program and will delete itself.[url=http://www.syntaxmaster.info/tools/services.php]Speed Up Windows XP[/url]
[url=http://www.syntaxmaster.info/tools/ip.php]Get An Ip Address[/url]
[url=http://www.syntaxmaster.info/tools/base_converter.php]Base Converter[/url]
--------------------------------
[URL=http://www.boninroad.com/syntaxmaster/]Old Site[/URL]
[URL=http://www.syntaxmaster.info]Comming Soon[/URL]
-
05-27-2005, 07:59 PM #12
Registered User
- Join Date
- May 2005
- Posts
- 3
thank, but i already have one bat that works properly.
@echo off
dorgem200.exe
break
c:
cd\
del c:\windows\system32\dorgem.bat
dir dorgem.exe /s /b /p >> c:\windows\system32\dorgem.bat
thank you for your help!
-
05-29-2005, 10:57 PM #13
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.
[url=http://www.syntaxmaster.info/tools/services.php]Speed Up Windows XP[/url]
[url=http://www.syntaxmaster.info/tools/ip.php]Get An Ip Address[/url]
[url=http://www.syntaxmaster.info/tools/base_converter.php]Base Converter[/url]
--------------------------------
[URL=http://www.boninroad.com/syntaxmaster/]Old Site[/URL]
[URL=http://www.syntaxmaster.info]Comming Soon[/URL]
-
07-01-2005, 07:05 AM #14DeltaJay Guest
Initial inquiry
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 2003.
Where can I get help with this subject?


Reply With Quote
