Hi Rankumar -
That's your problem then -
if os.system(zip_command) == 0:
> > > print 'Successful backup to', target
So, os.system() returns 0 for Win 95,98, ME.
For XP, it returns whatever the exit code your programme returns .
So whatever zip returns, is what os.system() returns, which m
As the below quote from the manual shows -
On Windows, the return value is that returned by the system shell
after running command, given by the Windows environment variable
COMSPEC: on command.com systems (Windows 95, 98 and ME) this is always
0; on cmd.exe systems (Windows NT, 2000 and XP) this
This is what i intend to do:
1. The files and directories to be backed up are given in a list.
2. The backup must be stored in a main backup directory.
3. The files are backed up into a zip file.
4. The name of the zip archive is the current date and time.
the coding:
__
import os
i