Click here to Skip to main content
12,691,453 members (29,234 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB ASP
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

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)


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 11-Dec-12 18:20pm
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.170117.1 | Last Updated 11 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100