batch files on Win XP?!!

DaniBoy

Registered User.
Local time
Today, 22:08
Joined
Nov 18, 2001
Messages
175
Hello,
I made a simple batch file on Windows XP, I saved it as autoexec.bat on the Command Prompt. When I start my computer it does nor execute the autoexec.bat file. Is there something that I have to do for it to work in XP?

All I tried was to open Access when I start my computer. I am also on a novell network, dont know if that matters!!

DaniBoy
 
Windows XP does not use DOS like the old 9x OS did. Windows XP is not looking for an AutoExec.bat file. You should create a shortcut to your Access program in the Startup directory. This will open Access when Windows loads on your PC.

C:\Documents and Settings\All Users\Start Menu\Programs\Startup\Access

The target field of your Access shortcut should be something like...
"C:\Program Files\Microsoft Office\Office\msaccess.exe"

HTH
 
Thanks ghudson

ghudson,
What I want to do is not just to open Access, I actualy need it to run a batch file. I was reading this thread and thats exactly what I want to do.

http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=36445

I want to be able to copy a file on my server to my desktop. I am new to dos so I was just trying to make it work. Any other way on how to make the autoexe.bat work on XP?

Thanks

Daniel
 
Access can call the batch file using the Shell function.

Call Shell("C:\Copy.bat")

Check the help files for the Shell function for more options if needed.

BUT, if all you want to do is copy a file then let Access do it without using DOS but running the FileCopy Statement.

FileCopy ("X:\Databases\Test\NewVersion.mdb"), ("C:\My Database\DatabaseA.mdb")

Check the help files for the FileCopy Statement for more info.

HTH
 
Thanks a lot ghudson!!

I think thats waht will work, thanks for your help. I will let you know what happens.
One more thing, do I look in access help or windows help?


Daniel
 
Last edited:

Users who are viewing this thread

Back
Top Bottom