Solved

PSEXEC SERVER 2008 PROGRAM FILES (X86) ACCESS 2007 ISSUE

Posted on 2010-11-16
7
846 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

OfficeMate Freezes on login or does not load after login credentials are input.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

920 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

15 Experts available now in Live!

Get 1:1 Help Now