Announcement

Collapse
No announcement yet.

batch file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • batch file

    Lost my batch files when reinstalling windows xp. The following bat file called "CCOPY.BAT" works from dos prompt, but I used to execute from a shortcut? Nothing happens if started from shortcut?
    Code:
    CD \
    CD \DOCUME~1\BRENTG~1\MYDOCU~1\
    COPY CBSDOWOP.CSV A:\
    COPY EXPORT.CSV A:\
    CD \
    CD \PBASE\FILES\
    COPY QUOTE.TRK A:\

  • #2
    Something happens. Either the batch file executes and gives you messages, or Windows cannot find the batch file and gives you a message. Chances are it's just going to fast for you to see it.

    Try adding PAUSE at the end of the batch file. That will tell you if the batch file is executing. If it ain't exectuting the problem is with your shortcut.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Found information on how to create a PIF file.
      START > MY COMPUTER
      navigate to "bat" file and right click.
      Click on create shortcut.

      Comment


      • #4
        a less risky way

        from desktop, right click,choose "new", choose shortcut,then it is simple.
        start typing the drive letter followed by the colon, then directory of program, then program name, the follow just a few more directions from the screen.

        i try not to use browse to point to files, because there is always a chance of deleting a file.

        the more you loss, the more experience you gain.

        paul
        p purvis

        Comment


        • #5
          batch file output

          To see what your batch file is doing, pipe STDOUT and STDERR to a text file.

          Example:

          c:\mybat.bat 1>c:\mybat.bat.txt 2>c:\mybat.bat.err.txt

          You'll end up with 2 text files.
          If you have no errors, the err.txt should be zero bytes.

          Note that the text files are fully qualified, prefixed by their path.

          Comment


          • #6
            Brent, if you enclose the directory spec in quotes you can use the long
            name of the directory
            for example
            CD "\program files"

            instead of
            CD \Progra~1
            Client Writeup for the CPA

            buffs.proboards2.com

            Links Page

            Comment

            Working...
            X