Thread: Ms-Dos commands & The Win Registery

  1. #1

    Question Ms-Dos commands & The Win Registery

    Hey, I am pretty new to c programming & I want to do a few things but I am not sure on how to.

    Well here are my questions,
    1. I can execute commands like dir in dos by using the system(""); function, but how would I create one to do the command dir *.txt? I already tried system("dir *.txt"); to no avail.

    2. How would I go about editing the registery? Example: The user can select to either have my program started on the startup or not to, So it just needs to have an entry to the registery.

    Thanks a lot,

  2. #2
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    What OS/compiler are you using?

    1. This works fine on my machine...
    2. Windows registry functions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Speed test result
    By audinue in forum C Programming
    Replies: 4
    Last Post: 07-07-2008, 05:18 AM
  2. help with this
    By tyrantil in forum C Programming
    Replies: 18
    Last Post: 01-30-2005, 04:53 PM
  3. Ping
    By ZakkWylde969 in forum Tech Board
    Replies: 5
    Last Post: 09-23-2003, 12:28 PM
  4. The Timing is incorret
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-28-2003, 04:57 PM
  5. real mode dos & win dos
    By scott27349 in forum A Brief History of
    Replies: 26
    Last Post: 08-19-2002, 06:15 AM