Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Atlanta
    Posts
    568
    Thanks
    7
    Thanked 1 Time in 1 Post

    Batch File No Run From Menu

    I have a batch file with the following command in it:

    c:winntsystem32xcopy.exe "Cocuments and Settingsrrichard.SPSUApplication DataMozillaFirefoxProfilesncpqb4q1.defaultBookmark s.html" D:Bookma~1 /M /Y

    It runs fine from the command line. Most of the batch file runs fine when I make it a menu option on my START menu but this line gives me an error message saying "program to big to fit into memory". Any thoughts as to why NT does not like it running from a menu?

    Ronny
    Ronny Richardson

  2. #2
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Batch File No Run From Menu

    Ronny

    It is purely a guess on my part, but maybe the Command Processor is not yet available at the time to process the XCOPY command.

    My suggestion would be to prefix the entire string with CMD /C and see if that helps.

    Otherwise set up a BAT or CMD file containing your XCOPY command string and put the name of the BATch or ComManD file into the Start menu.

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  3. #3
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Atlanta
    Posts
    568
    Thanks
    7
    Thanked 1 Time in 1 Post

    Re: Batch File No Run From Menu

    >It is purely a guess on my part, but maybe the Command Processor is
    >not yet available at the time to process the XCOPY command.

    >My suggestion would be to prefix the entire string with CMD /C and see if
    >that helps.

    >Otherwise set up a BAT or CMD file containing your XCOPY command
    >string and put the name of the BATch or ComManD file into the Start
    >menu.

    Dragging the batch file itself, rather than a shortcut, solves the problem. Thanks. I am currious though, why in the world would the command processor be "not yet available?"

    Ronny
    Ronny Richardson

  4. #4
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Atlanta
    Posts
    568
    Thanks
    7
    Thanked 1 Time in 1 Post

    Re: Batch File No Run From Menu

    >My suggestion would be to prefix the entire string with CMD /C and see if that helps.

    If I just start the line with a CMD/C, I get an error message saying it cannot find the program. It has been my experience that NT batch files completely ignore the path statement. If I specify the full path to CMD, e.g. C:WINNTSYSTEM32CMD /C, I still get the error message that the program is too big for memory.

    Ronny
    Ronny Richardson

Posting Permissions

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