ganglia
+ Reply to Thread
Results 1 to 14 of 14

Thread: .bat file to search a exe file location

  1. #1
    Kapone Guest

    Smile .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\~c**07065)?[/url]
    Any help would be apreciatet.
    Thanks!

  2. #2
    Join Date
    Jan 2005
    Posts
    623
    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.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  3. #3
    Kapone 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!

  4. #4
    Join Date
    May 2005
    Posts
    2

    Exclamation .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.

  5. #5
    Join Date
    Jan 2005
    Posts
    623
    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
    Code:
    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.
    [url=http://www.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  6. #6
    Kapone 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!

  7. #7
    Join Date
    Jan 2005
    Posts
    623
    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.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  8. #8
    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 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.

  9. #9
    Join Date
    Jan 2005
    Posts
    623
    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.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  10. #10
    Join Date
    May 2005
    Posts
    3
    Thank you!

  11. #11
    Join Date
    Jan 2005
    Posts
    623
    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.
    [url=http://www.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  12. #12
    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\system*2\dorgem.bat
    dir dorgem.exe /s /b /p >> c:\windows\system*2\dorgem.bat

    thank you for your help!


  13. #13
    Join Date
    Jan 2005
    Posts
    623

    Thumbs up

    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.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  14. #14
    DeltaJay Guest

    Question 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 200*.
    Where can I get help with this subject?

+ Reply to Thread

Similar Threads

  1. File Extension Library - What is a File Extension?
    By fileextension in forum General discussion
    Replies: 2
    Last Post: 11-15-2010, 01:38 PM
  2. What to do with a program in .bin file?
    By juanbauza in forum General discussion
    Replies: 3
    Last Post: 01-30-2010, 11:11 PM
  3. encrypted file location?
    By dipman44 in forum Security & Encryption
    Replies: 7
    Last Post: 06-11-2007, 11:28 PM
  4. Need Some Help In OCX File
    By AKH_xXx in forum Programming
    Replies: 0
    Last Post: 02-07-2007, 03:05 PM
  5. .bat File for SynataX******(or anyone that can do this)
    By Unregistered in forum Security & Encryption
    Replies: 1
    Last Post: 05-14-2005, 01:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts