Re: Problem with dos commands
- Posted by "Carl R. White" <cyrek at BIGFOOT.COM> May 22, 2000
- 375 views
On Sun, 21 May 2000 15:39:50 -0400, DB James <dbjames at PENN.COM> wrote: >Hilp (combination of Hi and help), Hellok (combination of hello and OK :) ) >I had a need for a simple encryption/decryption program and decided to >write it yesterday... >Only one of the dos commands has worked -- the copy command. >"rename" fails. >I am running Windows 98 and have Norton Systemworks 2000 on it. I don't think it's the operating system that's the problem here, more the access permissions on the file you're trying to rename / delete. At a DOS command line type: attrib problemfilename.here ...and see if the file's marked as read-only (R), hidden (H) or system (S). Any of these would stop system("del...",2) from deleting the file or system("ren...",2) from renaming. Ignore the Archive (A) attribute. The less likely possibility is that there's something wrong with the format of the path variable in your program. HTH, Carl -- [.sig done runner]