We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

Generate a list of Path Statements for lots of scattered files

124»

Comments

  • KingL
    KingL Posts: 1,713 Forumite
    edited 23 October 2018 at 7:19PM
    err, sorry. No luck.

    with the original version I'm getting 258 lines of path statements output into the textfile; and on the (onscreen) CLI two lines saying "file not found".

    with the batch file version, I'm getting an identical textfile output, and nothing in any onscreen window (well one flashes up quicly and disappears again, but its too quick to read).

    my batch file reads
    @echo on
    FOR /f "delims=" %%G in (filelist.txt) DO @DIR /b /s %%G   >>0FoundPathsEchoOn.txt
    
  • KingL
    KingL Posts: 1,713 Forumite
    Later....

    I think I've got it now - removing the @ from @DIR successfully 'turns the echo on' (as-per post #23). So I can see the fails on-screen and still get a clean output of the (sucessfully found) path statements in the .txt
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.4K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264.1K Travel & Transport
  • 1.6M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.