Program files move up a level?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
ijm
Newbie
Newbie
Posts: 5
Joined: May 10th, 2010, 5:01 pm

Program files move up a level?

Post by ijm »

I have a strange problem. Sometimes I turn on my machine, and sabnzbd isn't running--and it's always because every file (but none of the folders) in "C:\Program Files (x86)\SABnzbd\" has been moved to "C:\Program Files (x86)\"!
To "fix" it, I move the files back to "...\SABnzbd\" and start it up. Everything works properly otherwise.

How do I stop this from happening??

TIA!


Version: 0.5.2
OS: Windows 7 x64
Install-type: Windows Installer
Skin: Plush
Firewall: Win7 firewall
IPV6?: No
Reproducible: Not on-demand...but it happens two or three times per week. (On average the machine restarts twice per day.)
Last edited by ijm on May 10th, 2010, 6:09 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Program files move up a level?

Post by shypike »

Cannot think of any cause for this.
Do you have any of your working folders (Config->Folders)
within SABnzbd's program folder?

Long shot: virus scanner?
ijm
Newbie
Newbie
Posts: 5
Joined: May 10th, 2010, 5:01 pm

Re: Program files move up a level?

Post by ijm »

No, no working folders are within SABnzbd's program folder.

My VS is nod32--but I can't think of why it would move files up a level, and leave them otherwise unchanged. Also, nod32 isn't giving any errors.
A good thought, though.

If this happened every time I turned the machine on it would be easier to diagnose--but it's only around 5-10% of the time.
Any other longshots I can check out?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Program files move up a level?

Post by shypike »

SABnzbd cannot do it by itself, since a running program cannot move its own files.
The only other thing I can think of is that the OS has gone haywire
and it things it has to move things at startup time (standard mechanism
used when updating running software).
Try removing SABnzbd completely (except data), reboot and re-install SABnzbd.
ijm
Newbie
Newbie
Posts: 5
Joined: May 10th, 2010, 5:01 pm

Re: Program files move up a level?

Post by ijm »

I hate to bring this up again, but I have still have the strange problem. And though I can't believe I never noticed this before, it IS sabnzbd that is moving the files.
Here's screenshot proof. It seems that when there's a problem finding the downloaded files, it moves the program files up a level instead. Very, very odd.

Image
ijm
Newbie
Newbie
Posts: 5
Joined: May 10th, 2010, 5:01 pm

Re: Program files move up a level?

Post by ijm »

Oh, and most importantly, I'm using the following post-processing, which I realize is the culprit:

Code: Select all

@echo off

for /f "tokens=*" %%c in ('dir/b/a-d %1 ^| find /v /c "::"') do set filecount=%%c

if (%filecount% LEQ 1) (
cd /d %1
for /f "tokens=*" %%f in ('dir /a-d /b') do if not exist "..\%%f" ( 
echo Moving %%f...
move "%%f" ".."
)
cd ..
echo Deleting folder...
rd %1
) else (
echo To many files to move, aborting...
)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Program files move up a level?

Post by shypike »

It's the script?
What does it do wrong?
ijm
Newbie
Newbie
Posts: 5
Joined: May 10th, 2010, 5:01 pm

Re: Program files move up a level?

Post by ijm »

Well, it's grabbing the files in the program directory and moving them up to Program Files.  Most of the time the script does exactly what I want: when an extracted folder has only 1 file in it it moves the file up a lever and deletes the folder.

I'm going to change LEQ to EQU...I bet that'll do it.
Last edited by ijm on March 29th, 2011, 9:26 am, edited 1 time in total.
Post Reply