[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

PSEXEC SERVER 2008 PROGRAM FILES (X86) ACCESS 2007 ISSUE

Posted on 2010-11-16
7
Medium Priority
?
863 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 85
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

649 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