0

I tried it like this.I also want to jump back and forth repeatedly between the two folders.Please help.

#include<stdio.h>

#include<windows.h>

int main()
{
    system("cd Players"); //Players is the name of my subfolder

 


    system("echo > test.txt");




    return 0;
}
  • If you are going to perform system commands, you might as well just write a PowerShell script. Use the Windows filesystem APIs to perform filesystem operations from a C program. – Cheatah Sep 22 '21 at 13:57

0 Answers0