Jump to content
reikoku

running a program from cmd.exe

Recommended Posts

As vrea sa va intreb pe voi cum fac sa rulez un program din cmd, in orice director as fi, fara sa scriu tot path-ul.

Mi-am facut mai demult nmap-ul sa-mi ruleze asa si nu mai stiu cum, e ceva cu editarea unei linii in Properties a programului.

Mersi de timpul acordat, numai bine.

Link to comment
Share on other sites

ok...imi raspund singur la post, poate va intereseaza si pe voi, am gasit cum se procedeaza.

exemplu: ai programul nbtscan.exe in "d:\download\tools\nbtscan"

primul lucru care`l faci e te duci in acel director

start-run-cmd apoi "cd d:\download\tools\nbtscan"

apoi "SET PATH=%PATH%;d:\download\tools\nbtscan"

in folderul nbtscan se gaseste fisierul nbtscan.exe, deci dai doar calea folderului nu si a executabilului.

Sper ca ati inteles ce am vrut sa zic, numa` bine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...