Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I have a problem when executing a command from ASP. Actually the i wrote a method in ASP page,it will open the command prmpt and execute a cmd.The below is the code

VB
TFS="C:\TFSGet\TFSGet\bin\Debug\TFSGet.exe"

   TFSServer="http://tfs01.kenexanet.com:8080/"

   pathSpec="$/KRBEnterprise/Enterprise-DEV/Application"

   sScript="ComponentList"

   outPath="C:\Verity"


   strCmd = Chr(34) & TFS &  Chr(34)
   strCmd = strCmd & " /s " & Chr(34) & TFSServer &  Chr(34)
   strcmd = strCmd & " /p " & Chr(34) & pathSpec  &  Chr(34)
   strCmd = strCmd & " /f " & Chr(34) & sScript   &  Chr(34)
   strCmd = strCmd & " /o " & Chr(34) & outPath   & Chr(34)


VB
Set objWShell = CreateObject("WScript.Shell")
  Set objCmd = objWShell.Exec(strCmd) -- Code getting hanged here.

Please suggest me with your ideas on this..


Thanks,
Kiran
Posted
Comments
VishwaKL 12-Dec-12 4:22am    
have you checked the TFS port number and the privileges assigned for you,
lailac88 20-Mar-13 4:49am    
read this-->http://msdn.microsoft.com/en-us/library/aa479044.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900