Hi, folks:

What I think is a [NF] Non-Fox question.

PROBLEM:
I've taken over a legacy app's backup batch routine. It automatically
worked on their old machine (Windows 2000!) but I'm having trouble
duplicating it in "Schedule Tasks" on their replacement machine, a Win
7 Pro workstaton.

BACKGROUND:
Once a day, the scheduled task launches a VFP executable that:

CD's to a local directory
Opens a local DBF or recreates it if missing, with a single record
containing a date
Reads that DBF to get the date
Does an ADIR to read a network file's last update date

If the local file date # the remote date,

It UPDATEs the table with the remote date
It does a RUN /N to launch a .BAT which:

XCOPY's the network files to the c: drive
7-ZIPs the files into an archive
invokes PuTTY's pscp to perform a secure copy to a "cloud" server.
(PuTTY's pagent is running in the desktop tray, with the necessary
private key loaded)

The scheduled task is configured to run this in the same context as
the primary user of the machine.

EXPECTED:
When I am logged in as that user via RDP and run the EXE, the app
works as expected.

ACTUAL:
When it runs from Scheduled Tasks, either automatically or manually
invoked, there's no screen interaction, of course, but no file sent,
either.

The EXE shows up in the Task Manager, initially using 3,456K of
memory, then it slowly decreases down to 318K

WHAT I'VE TRIED:
Running while logged in (remotely via RDP) works fine.

Changing the network locations (F:) to UNC
(\\fileserver\sharename\path) didn't make a difference.

Ticking the checkboxes in Scheduled Tasks for "Log in as" or "Run only
when logged in" or "Use maximum permissions" made no difference.

Ideas? Is this a WinPro7 v. 2000 security "feature" I'm running into?


-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CACW6n4t1XEUgy-3thS7aJi=5l2s2ctoc3oqqsuprsgy4l6c...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to