Results 1 to 2 of 2

Thread: Batch file never finishes

  1. #1
    Join Date
    Nov 2011
    Posts
    1

    Batch file never finishes

    Hello All,

    I am trying to set permissions using icacls.

    When I run this statement in a command prompt...

    ICACLS C:\WebSites\Tenant1\app\admin\virtual\ /grant everyoneOI)(CI)F

    I get the following result:

    processed file: C:\WebSites\Tenant1\app\admin\virtual\
    Successfully processed 1 files; Failed processing 0 files

    When I save the very same statement in a batch file and then run it, the bat file never finishes. It's like the cmd window is stuck in a loop.

    The OS is Windows 2008 R2 64 bit.

    Thanks for any help you can give,
    Jake

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291

    Re: Batch file never finishes

    Well, if you have get around to the windows task scheduler to manually create the task, note that you have to put the parameter /AUTOCLOSE to make ScriptFTP close itself once it finishes. For example:

    C:\Program Files\ScriptFTP\ScriptFTP.exe myscript /AUTOCLOSE

Similar Threads

  1. make file name list in excel using batch file
    By shibinpanayi in forum Windows Software
    Replies: 1
    Last Post: 04-06-2011, 03:44 AM
  2. Learning Batch file to open a program or a file
    By Ikshana in forum Windows Software
    Replies: 3
    Last Post: 04-04-2011, 07:24 PM
  3. Windows Batch file to output directory names and size to txt file
    By m2thearkus in forum Software Development
    Replies: 6
    Last Post: 16-07-2010, 12:04 AM
  4. Dos batch file to sort files based on file names.
    By Jon Osborn in forum Windows Server Help
    Replies: 9
    Last Post: 17-06-2009, 11:06 AM
  5. Replies: 3
    Last Post: 12-03-2009, 12:56 PM

Tags for this Thread

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
  •  
Page generated in 1,714,094,296.62136 seconds with 17 queries