command prompt commands

Questions about programming languages and debugging
Post Reply
PopPooB
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 236
Joined: 16 May 2007, 16:00
16
Location: CandyLand
Contact:

command prompt commands

Post by PopPooB »

okay i know some stuff coded in batch uses exe tools sometimes were

Code: Select all

<tool> /<toolcommand><filename>
etc and other stuff

but how do you make these things
96% better then all connections global
Kiss My Ass Good Bye

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, not really sure if I got you right, but all that is needed to run an app from batch is that the app is inside a path that is defined in the environment variables.

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

It's as bb says, for example just writing:

@echo off
ping -a 127.0.0.1
PAUSE

in the batch file would turn echo off then ping your computer with the option "resolve addresses to hostnames" and the pause.

This is because the tool "ping.exe" is found in a path that is found in the enviorment variables. In this case "C:\Windows\System32"
"The best place to hide a tree, is in a forest"

Post Reply