+ Reply to Thread
Results 1 to 2 of 2

Kill the cmd window after shell command

  1. #1
    Registered User
    Join Date
    12-02-2008
    Location
    USA
    Posts
    38

    Kill the cmd window after shell command

    Hello,

    I have a .bat file which does an ftp. The content of the .bat file leyo.bat is "ftp -i -s:C:\leyo.ftp".
    I am using the following code to execute this bat file==>
    Please Login or Register  to view this content.
    This works fine. But the problem is the cmd window is open (If I run the above code for 50 times, 50 cmd windows are open). Also it is locking the file "leyo.ftp". I cannot delete this file.
    How to kill the window after the shell caommand executes the .bat file?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,645

    Re: Kill the cmd window after shell command

    Do you really need the command window? Maybe just:
    Please Login or Register  to view this content.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1