We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Programming help - multiple file paths

Options
Got a program at work which looks in a specified folder for zip files, i would like to modify this line to "look" into two seperate folders,

is there any syntax i can put between the two paths to read from both off the same line etc,

ie c:\first folder && c:\second folder
# i do not know what language the main program is written in, but i suspect a dos based C or C++ etc
This is not an automated signature. I write this at the bottom of every message

Comments

  • Chippy_Minton
    Chippy_Minton Posts: 3,339 Forumite
    Try ; as the separator, for example the dir command:

    dir c:\windows ; "c:\documents and settings"

    works in DOS (the quotes are required for the 2nd folder because it contains spaces), however it depends how the program interprets the line.

    What does the line look like exactly? Is it a line in a .bat or other script, or the nth line in a data file? Maybe the program can read an environment variable which specifies the folders.
  • L400ras
    L400ras Posts: 153 Forumite
    thanks, nearly works. it is the nth line in a data file
    This is not an automated signature. I write this at the bottom of every message
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.6K Spending & Discounts
  • 244K Work, Benefits & Business
  • 598.9K Mortgages, Homes & Bills
  • 176.9K Life & Family
  • 257.3K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

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.