Solved

Schedule Task 98???????

Posted on 1998-10-22
4
184 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
[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
  • 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

691 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