I am using Bob Larson's Automatic Updating program.
Cutting out some of the code
Everything worked fine until they switched me to a laptop.
Now everything appears fine, the shell file is created but it does not run. I have to run it (double click) manually. Would anyone know why? What would be different???? The code I have, while some additions have been made, has been working fine for a year and all of the sudden, new machine and now it doesn't.
It is no problem for me but this happens to the users then I will not be a friend of our IT dept anylonger.
Cutting out some of the code
Code:
' sets the file name of the batch file to create
TestFile = CurrentProject.Path & "\UpdateDbFE.cmd"
' creates the batch file
Open TestFile For Output As #1
Print #1, "Echo Off"
Print #1, "ECHO Deleting old file"
[Blah] [Blah] [Blah]
Print #1, "CLICK ANY KEY TO RESTART THE ACCESS PROGRAM"
Print #1, "START /I " & """MSAccess.exe"" " & strRestart
Close #1
'Exit Sub
' runs the batch file
Shell TestFile
'closes the current version and runs the batch file
DoCmd.Quit
Everything worked fine until they switched me to a laptop.
Now everything appears fine, the shell file is created but it does not run. I have to run it (double click) manually. Would anyone know why? What would be different???? The code I have, while some additions have been made, has been working fine for a year and all of the sudden, new machine and now it doesn't.
It is no problem for me but this happens to the users then I will not be a friend of our IT dept anylonger.