I have:

c:\directory1\file1.txt
c:\directory2\file2.txt

Is it possible to compress the files inside the directories to archives named directory1.7z and directory2.7z without adding the directories themselves to the archives?

Inside the archives I want only the files, not the files in a directory.

I hope you know what I mean :)

thx