dmwyatt / miscScripts

2 stars 0 forks source link

I feel like an idiot, but I cannot get the syntax down for the scripts #1

Open ecec opened 11 years ago

ecec commented 11 years ago

Everything I try results in

C:\scripts>py c:\scripts\backupxtensions.py v:\movies File "c:\scripts\backupxtensions.py", line 17 print filepath

The root folder is v:\movies, the script is in c:\scripts, and I'm trying to put the output file on c:. This is Win7.

I've tried v:\movies, v:/movies, v\movies.

Like I said, I feel like an idiot that I can't figure this out. :)

dmwyatt commented 11 years ago

Try something like:

python c:\scripts\backupxtensions.py v:\movies c:\backupfile.tar.bz2 nfo,jpg,tbn

No need to feel like an idiot. The script doesn't have any built-in help. There are some directions here: https://github.com/therms/miscScripts/blob/master/README

ecec commented 11 years ago

Tried the following combinations just to see if I could create a different error. Win7, Python33 if it matters. C:\scripts>py c:\scripts\backupxtensions.py v:\movies c:\backup.tar.bz2 nfo,jpg tbn,png File "c:\scripts\backupxtensions.py", line 17

print filepath

C:\scripts>py c:\scripts\backupxtensions.py v:/movies c:/backup.tar.bz2 nfo,jpg, tbn,png File "c:\scripts\backupxtensions.py", line 17 print filepath ^

SyntaxError: invalid syntax

C:\scripts>py c:\scripts\backupxtensions.py v:\movies File "c:\scripts\backupxtensions.py", line 17 print filepath ^

SyntaxError: invalid syntax

C:\scripts>py c:\scripts\backupxtensions.py File "c:\scripts\backupxtensions.py", line 17 print filepath ^ SyntaxError: invalid syntax

dmwyatt commented 11 years ago

It won't work with Python 3. Try python 2.7 On Feb 2, 2013 5:42 PM, "ecec" notifications@github.com wrote:

Tried the following combinations just to see if I could create a different error. Win7, Python33 if it matters. C:\scripts>py c:\scripts\backupxtensions.py v:\movies c:\backup.tar.bz2 nfo,jpg tbn,png File "c:\scripts\backupxtensions.py", line 17 print filepath

C:\scripts>py c:\scripts\backupxtensions.py v:/movies c:/backup.tar.bz2 nfo,jpg, tbn,png File "c:\scripts\backupxtensions.py", line 17 print filepath ^ SyntaxError: invalid syntax

C:\scripts>py c:\scripts\backupxtensions.py v:\movies File "c:\scripts\backupxtensions.py", line 17 print filepath ^ SyntaxError: invalid syntax

C:\scripts>py c:\scripts\backupxtensions.py File "c:\scripts\backupxtensions.py", line 17 print filepath ^ SyntaxError: invalid syntax

— Reply to this email directly or view it on GitHubhttps://github.com/therms/miscScripts/issues/1#issuecomment-13039472.

ecec commented 11 years ago

Uninstalled 3, installed 2.7, got a whole new message. :)

C:\scripts>python backupxtensions.py v:\Movies\ c:\backup.tar.bz2 nfo size: 0

C:\scripts>python backupxtensions.py v:\movies c:\backup.tar.bz2 nfo,jpg,png,tbn size: 0

No matter what I do it always comes up with size 0. Since v:\ is a mapped network drive, I tried running the same thing from my server (WHS2011) and got the same result.

ecec commented 11 years ago

I think I'm just going to bite the bullet and not worry about backing up all this crap, so if you want to close this out that's fine by me. :)

dmwyatt commented 11 years ago

I've never used it on windows, so I'm not sure what's going on. My guess is that it's something to do with the paths. If you still want to try it, I'd try these things: