Name a report after parent fodler.

Discuss and share scripts and script files...
Post Reply
sl23
Posts: 223
Joined: 03 Feb 2015 23:34

Name a report after parent fodler.

Post by sl23 »

I have found some code, maybe in the help file, quite some time ago, and have adapted it to this in order to create Playlist files:
"Create Playlist|:cliptext" writefile("Report.m3u", report("{Basename}.{ext}<crlf>", ,));

It's not a big deal, but would help if I could create the report using the name of the parent folder. But whatever I put inside the double quotes gets turned into the filename! How do I go about making it work how I would like it to?

Thanks for any advice.

highend
Posts: 13314
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Name a report after parent fodler.

Post by highend »

There is <curfolder>?
One of my scripts helped you out? Please donate via Paypal

sl23
Posts: 223
Joined: 03 Feb 2015 23:34

Re: Name a report after parent fodler.

Post by sl23 »

Ah, so I need to use this: new() ?

highend
Posts: 13314
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Name a report after parent fodler.

Post by highend »

Why should you need that?
One of my scripts helped you out? Please donate via Paypal

sl23
Posts: 223
Joined: 03 Feb 2015 23:34

Re: Name a report after parent fodler.

Post by sl23 »

Haha! I dunno what I need tbh!

kiwichick
Posts: 557
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: Name a report after parent fodler.

Post by kiwichick »

sl23 wrote: 05 May 2023 19:18 Haha! I dunno what I need tbh!
Replace "Report.m3u" with "<curfolder>.m3u"
Windows 10 Pro 22H2

sl23
Posts: 223
Joined: 03 Feb 2015 23:34

Re: Name a report after parent fodler.

Post by sl23 »

Oh I didn't realise highend was being so literal! Not used to that! :oops:
Thanks to you both.

kiwichick
Posts: 557
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: Name a report after parent fodler.

Post by kiwichick »

sl23 wrote: 17 May 2023 18:30 Thanks to you both.
You're welcome ☺️
Windows 10 Pro 22H2

Post Reply