Thread: Need help with Dos - autoexec

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    4

    Need help with Dos - autoexec

    First let me make clear : THIS IS NOT VIRUS/TROJAN/HACK , else i wouldnt post it here ... now to the question :

    I wrote a little program for school , that edits the AutoExec.bat file ( ie. write in a few lines ) , now i want to send a direct dos commando ( changing an aspect of a file with the "attrib" command ) but it cant seem to write in some letters and symbols , here's my code and what i WANT to happen , and there after what happens :

    "Attrib +H c:\windows\desktop\Test.txt"

    ( ofcourse i made the commands too open the file , and anything else i wanna add goes fine )

    here's what it does :

    attrib +h c:windowsdesktoptest.txt

    it also seems to have problem with the "a" char sometimes.. can some1 tell me what im doing wrong ?

    help would be appreciated !

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    8
    try the command as below

    "Attrib +H c:\\windows\\desktop\\Test.txt"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  2. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 10:32 AM
  3. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 06:15 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM
  5. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 07:14 PM