Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

setting dos prompt to other than default c:|||COL|||1

hiya, is there a way to set a dos prompt other than my c drive. would like to set it as default to another drive and even another directory sometimes..

thanks,
grahamoj.

Comments

  • : hiya, is there a way to set a dos prompt other than my c drive. would like to set it as default to another drive and even another directory sometimes..
    :
    : thanks,
    : grahamoj.
    :

    Yes. The system() function, that enables you to execute operating system commands while in a C program. The function is defined in the stdlib.h header file.

    Heres how it can be used (an example):

    system("cd A:");

    or

    char *command = "cd A:";
    system(command);
This discussion has been closed.