View Single Post
Old 07-11-2008   #7 (permalink)
Megan


 
 

Re: File name prefix?

Hi,

I'm new to powershell and having a similar problem where I'm trying to
rename the file with folder name as the prefix.

eg. C:\scripts\test.txt
becomes
C:\scripts\scripts_test.txt

I can get it to loop through and rename, but can't find a way to return the
folder name to append to the existing name?

Any advice is appreciated. Thanks

"Jacques" wrote:
Quote:

> Shay
>
> That does it! Many thanks.
>
> Jacques
>
>
>
My System SpecsSystem Spec