Solved

Schedule Task 98???????

Posted on 1998-10-22
4
180 Views
Last Modified: 2013-12-28
I wish to run a task which will compact my Access database overnight, it works on one PC running windows 95 but the same task will not execute on 98?  The run line reads C:\PROGRA~1\MICROS~1\OFFICE\MSACCESS.EXE D:\Data97.mdb /compact" Now I did want this task to work across the network and activate the drive on the sever, but for now I would be happy to see it work on my local drive.  I set the time and date and whenthe clock reaches that time ....nothing and the schedule then sets the next run time to the following day as it is a daily task.  Can anyone help????? Its beyond me is there any test I could run to see if schedule is working correctly ???????
0
Comment
Question by:Beeby
  • 2
4 Comments
 

Expert Comment

by:padrino102298
ID: 1646568
The problem is with the command line switches in the run line for access.. It needs to read like this..

"C:\PROGRA~1\MICROS~1\OFFICE\MSACCESS.EXE" D:\Data97.mdb /compact

You need the executable itself in the quotes and any parameters on the outside.. It will run properly if setup like this
0
 

Author Comment

by:Beeby
ID: 1646569
I must reject your answer because it works without the quote marks.  It works on the local drive, it's when I try to access the drive on the server.  The server inquestion contains little security restrictions once in Windows you are able to access the drive.  So does it require different different coding to access this drive????????  C:\PROGRA~1\MICROS~1\OFFICE\MSACCESS.EXE G:\Data97.mdb /compact is what I am using what must I change?????? I have tried the quote marks and it still does not work.  Thank you
0
 
LVL 3

Accepted Solution

by:
linschoten earned 50 total points
ID: 1646570
Instead of using drive names...use UNC names ie, \\servername\Ddrivesharename\data97.mdb /compact
The quotes are mainly need for longfilenames.
ie C:\PROGRA~1\MICROS~1\OFFICE\MSACCESS.EXE
or "C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\MSACCESS.EXE"

Your command line should work.The thing to look at would be if the directory structure is correct. The C:\PROGRA~1 could be :\PROGRA~2\ for example.
Run you command from a Dos Window and see if it works.
0
 

Author Comment

by:Beeby
ID: 1646571
How do you obtain the exact syntax for the UNC names ie, \\servername\Ddrivesharename?????????
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 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