Re: Problem with dos commands

new topic     » goto parent     » topic index » view thread      » older message » newer message

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]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu