NOTE: In wamp server wamp/www is the root directory and if you are already using wamp/www/wordpress than wordpress is already your sub directory.
Anyway you can follow this steps to move wordpress in folders. Make sure you are using copy and not cut so that you will be having a backup if anything goes wrong.
1) Open the dashboard of your current website and install the plugin WP MIGRATE DB.
2) In the old site dashboard go to tools > Migrate DB
3) In Migrate DB page Keep the tick on ‘Save as file to your computer’ and remove tick from ‘ Compress file with gzip’.
4) In the Find tab you will be having ‘//localhost’ corresponding to it in replace box you will have to write ‘//localhost/your-folder-name’ and click export
5) Create a new database in phpmyadmin
6) copy all the wordpress files from your root folder and paste it in the new folder, it will same as you have kept in step 4 i.e, ‘your-folder-name’
7) now head on to your new folder and open the wp-config that will be in the root of your new folder and open it.
8) change the following things
define(‘DB_NAME’, ‘your-new-database-name’)
define(‘DB_USER’, ‘your-database-user-name’);
define(‘DB_PASSWORD’, ‘your-database-password’);
9) generally if you have used defaults in your server then you will only be changing database name to newly create db name. By default the username will be ‘root’ and password will be empty like ”.
10) Now go to your browser and access your wordpress like https://localhost/your-new-folder-name and it should work
11) go to dashboard of new site and save permalinks again to ensure the changes in the .htaccess file.