Solved

PSEXEC SERVER 2008 PROGRAM FILES (X86) ACCESS 2007 ISSUE

Posted on 2010-11-16
7
843 Views
Last Modified: 2012-05-10
I have been having a problem executing a batch file remotely through psexec and through cold fusion cfexecute.  I think the root of the problem is the fact that I am trying to start Access 2007 on the server and run a make table macro, and Access 2007 resides in the c:\Program Files (x86) directory.  I do not think Server 2008 wants to let me do that.  The other parts of the batch file run great.

I am using Server 2008 x64, and Access 2007.

To troubleshoot this, I have diabled UAC, and changed some other permissions to no avail.  Any suggestions would be appreciated.  I can go back later and make it secure, I just want to get it to work and understand why it wasn't
0
Comment
Question by:PeelSeel2
7 Comments
 
LVL 84
ID: 34148461
What's the syntax of the Batch statement - at least the part that fires off the Access database.

Are you getting an error? If so, error number and error text would help.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34148570
FWIW, I notice that  a fair amount of your Question Titles are in ALL CAPS.

All caps is interpreted as YELLING!

Just FYI

JeffCoachman
0
 

Author Comment

by:PeelSeel2
ID: 34149884
"C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.exe" "D:\Data\SEDCAccess\NNPPDintegrator.mdb" /x Missed_Meters_Daily

REM Mapguide Missed Meters Daily to spatial SQLite

del /f /q "D:\Data\SEDCAccess\mmd.db"

"C:\Program Files (x86)\FWTools2.4.7\bin\ogr2ogr" -f "SQLITE" -dsco  FORMAT=WKB "D:\Data\SEDCAccess\mmd.db" "D:\Data\SEDCAccess\mmd.vrt"

REM SQLITE VIEW TO SHP
del /f /q "D:\Data\ShapeFiles\missedmd.dbf"
del /f /q "D:\Data\ShapeFiles\missedmd.idx"
del /f /q "D:\Data\ShapeFiles\missedmd.shp"
del /f /q "D:\Data\ShapeFiles\missedmd.shx"

"C:\Program Files (x86)\FWTools2.4.7\bin\ogr2ogr" -f "ESRI Shapefile" "D:\Data\ShapeFiles" "D:\Data\SEDCAccess\mmd.db"

This batch file runs fine when logged in through remote desktop, it does what it is supposed to.  If I try it remotely from the other programs, it only runs if I REM out the first line having to do with access.  All the rest run fine.  If the first line is not REM'ed, it spawns a cmd process and an access process but get no further and hangs.

I will have to remember that about question titles.  Too long posting titles on ebay :)
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 66

Expert Comment

by:johnb6767
ID: 34152558
Try changing the following....

"C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.exe" "D:\Data\SEDCAccess\NNPPDintegrator.mdb" /x Missed_Meters_Daily

to

start "C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.exe" "D:\Data\SEDCAccess\NNPPDintegrator.mdb" /x Missed_Meters_Daily
ping -n 30 localhost>nul

The ping is onbly there for a 30 second pause to allow access to do what it needs to do.... If you dont need it, or need to make it longer, go for it....

Using the Start command though, without the /WAIT switch, means it moves on to the next line....
0
 

Accepted Solution

by:
PeelSeel2 earned 0 total points
ID: 34168689
We have come close to finding the issue.  The Missed_Meters_Daily was a macro that ran a make table query into another microsoft access 2007 database (Mapguide.mdb).  When we changed that query to have it a make table query into the NNPPDIntegrator.mdb, it ran fine from psexec and from cfexecute.  So calling one access db to make a table into another one provides some weird issue running it remotely through those two programs.

Thanks for your efforts!!
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34170539

Good fix......
0
 

Author Closing Comment

by:PeelSeel2
ID: 34195092
Got it working mostly.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
OfficeMate Freezes on login or does not load after login credentials are input.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now