Command Line Switch exe embeding?

xuphor

New Member
I use a program called "Texmod" for a number of games to modify their textures. One game I am recently playing, however, requires that a command line switch be used to run the game client exe directly. Texmod doesn't support command line switching through it's own, so the game client refuses to work. Is there anyway (via Windows options or a third-party application) I can embed/hardcode the command line switch into the exe permanatly, so if the exe is ran, it'll always force load the command line switch?
 

My Computer

There are switches for cmd.exe, but I don't see how you could utilize this outside of a batch or scripting file.
 

My Computer

System One

  • Manufacturer/Model
    Custom
    CPU
    AMD AM2 6000+
    Motherboard
    Nvidia M2N-E SLI
    Graphics Card(s)
    GeForce 7600GT
    Screen Resolution
    1280x1024
    Hard Drives
    WD
    Case
    Cooler Master
    Cooling
    Three fans
    Keyboard
    Dell Quietkey
    Mouse
    Dell Optical
    Internet Speed
    10 MBPS
I'm afraid i'm not entirely sure what you mean by a batch or scripting file.
If it's possible, i'd even be willin to decompile the exe, input the prompt at the correct time, and recompile it, but I have no clue if that's even possible.
 

My Computer

If you program, then you should be able to "shell out" of the program to run an external command. Since you won't be able to decompile cmd.exe, you might want to consider running a script or batch file.

Windows Vista Command Line List and Reference
 

My Computer

System One

  • Manufacturer/Model
    Custom
    CPU
    AMD AM2 6000+
    Motherboard
    Nvidia M2N-E SLI
    Graphics Card(s)
    GeForce 7600GT
    Screen Resolution
    1280x1024
    Hard Drives
    WD
    Case
    Cooler Master
    Cooling
    Three fans
    Keyboard
    Dell Quietkey
    Mouse
    Dell Optical
    Internet Speed
    10 MBPS
Let me make sure i'm reading you right, You are saying that I can be running the exe file, then while it's running, apply a command line switch to it? If so, that would work well.
 

My Computer

Let me make sure i'm reading you right, You are saying that I can be running the exe file, then while it's running, apply a command line switch to it? If so, that would work well.

I'm saying you can be running an executable program, and execute another program (be it .exe, .bat, etc) from within the initial program. The .bat file could run the cmd.exe file in conjunction with whatever else you needed to run.

To test, just create a file (say... test.bat) with what you need to execute from the cmd prompt.

Then it would return to the original program after execution of the batch file (providing the batch file does not implement a stop).
 

My Computer

System One

  • Manufacturer/Model
    Custom
    CPU
    AMD AM2 6000+
    Motherboard
    Nvidia M2N-E SLI
    Graphics Card(s)
    GeForce 7600GT
    Screen Resolution
    1280x1024
    Hard Drives
    WD
    Case
    Cooler Master
    Cooling
    Three fans
    Keyboard
    Dell Quietkey
    Mouse
    Dell Optical
    Internet Speed
    10 MBPS
Ooh, right. The problem with this is Texmod will only grab textures from the initial program, so if I luanch a .bat file, try to load CMD, etc, it will not grab textures from the exe that the bat/cmd files open, it'll try to grab textures from the bat file or CMD itself, which obviously does not work.
 

My Computer

Back
Top