473,327 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Can I learn Python on this forum

2
Is it really your intention to zip the entire I drive contents????
You should really start smaller like we have already discussed.

This script calls your system cmd.exe so you are already complicating things.

You need two things on you system for this to work. 1) an "I" drive, and 2) zip installed on the system PATH. If you don't know how to run zip from the command line, you are starting of with too many unknowns. If you can run zip from the command line, try to do the zip by hand. That will tell you if that part is working. If it is, then we can work on your script.
Think "baby steps". You tend to jump into the deep end a lot.
The proplem is actualy quite simple

In the line below you have 2 apostropies around the first %s that you dont need. Remove them and the script will work fine.

Before
zip_command = "zip -qr '%s' %s" % (target, ' '.join(source))

After
zip_command = "zip -qr %s %s" % (target, ' '.join(source))
Mar 7 '07 #1
2 764
Methos
2
Sorry thats still wrong.

heres the correct implementation

zip_command = "zip -qr %s %s" % (target, ''.join(source))

the space between the apostropies ahead of the .join statement what creating spaces between the characters in your source string.
Mar 7 '07 #2
bartonc
6,596 Expert 4TB
Sorry thats still wrong.

heres the correct implementation

zip_command = "zip -qr %s %s" % (target, ''.join(source))

the space between the apostropies ahead of the .join statement what creating spaces between the characters in your source string.
Sorry. I thought that this was a question and split it out from the thread that you had posted in. It's late now but I can re-merge the two in the morning, if you like.
Welcome to the Python Forum and TSDN. I hope you stick around with answers for other members or questions of your own.
Kind regards,
Barton
Python Forum Moderator
Mar 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

42
by: Bicho Verde | last post by:
I have now free time and money to do what I want :-) I have some basic skills in programming (C, Pascal, Macromedia Actionscript) but don't know exactly what to do in the world of programming. And...
24
by: Charif Lakchiri | last post by:
Okay, here's what I know so far about Python: It's an object-oriented scripting language, supported on many platforms. Now here are my questions: It is easy to learn? Does it support GUI...
0
by: Robert Oschler | last post by:
Hello all, I have set up a forum dedicated to WordNet Developers. I just added a section for Python developers that are using PyWordNet or other Python based WordNet interface modules or code. ...
18
by: Jonas Melian | last post by:
Hi, I'm going to say a suggestion, why don't you create a forum like the one of Ruby (http://www.rubyforums.com/)? for the novices this is a great help, better than a mail list It's also...
1
by: john67 | last post by:
Every time I attempt to look at the Python Business Forum (www.python-in-business.org), I encounter an error that starts like this: Site Error An error was encountered while publishing this...
8
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ;...
5
by: SeNTry | last post by:
Hello, Are there any good active python forums online? Especially any forum that has an uber-noob section!
7
by: fyleow | last post by:
Hi guys, I'm a student/hobbyist programmer interested in creating a web project. It's nothing too complicated, I would like to get data from an RSS feed and store that into a database. I want...
9
by: Katie Tam | last post by:
I am new to this filed and begin to learn this langague. Can you tell me the good books to start with ? Katie Tam Network administrator http://www.linkwaves.com/main.asp...
65
by: Chris Carlen | last post by:
Hi: From what I've read of OOP, I don't get it. I have also found some articles profoundly critical of OOP. I tend to relate to these articles. However, those articles were no more objective...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.