cmd cant change directory
To change the directory using the cmd
command in BASIC, you can use the CHDIR
statement. Here is an example:
CHDIR "C:\NewDirectory"
This statement changes the current directory to "C:\NewDirectory". You can replace "C:\NewDirectory" with the path of the directory you want to switch to.
Note that the cmd
command in BASIC is used to execute external commands, so you can also use the CD
command followed by the directory path to change the directory. Here is an example:
SHELL "CD C:\NewDirectory"
Again, replace "C:\NewDirectory" with the path of the directory you want to switch to.
Remember to provide the correct path to the directory you want to change to in order for the command to work successfully.