Need batch file to pull Quicken data file from network location, and then put back when done

StackOverflow https://stackoverflow.com/questions/3141143

  •  01-10-2019
  •  | 
  •  

Pergunta

My husband and I use Quicken on two separate computers on the same home network. We have two installations of the application, but only one data file that resides on my husband's machine.

Quicken doesn't work well when I try to open the data file across the network from my machine. It runs very slow and has unexplainable errors.

So, instead, I need a batch file to copy the data file to my machine so I can use it, then put it back when I'm done.

Any suggestions where to start?

Foi útil?

Solução

I do something very similar.

REM Networked Drive isnt always recognized from DOS unless its mapped in explorer first
explorer /n,q:\
call wait 5
copy "q:\Quicken.QDF" C:\
REM Backup the Quicken copy from your Q drive
move "q:\Quicken.QDF" "Q:\QuickenBackup%date:~4,2%%date:~7,2%%date:~10,4%.QDF"
REM Now run Quicken
"C:\Quicken.QDF"
REM After youre done with the data file, put it back
copy "C:\Quicken.QDF" Q:\Temp.QDF
IF ERRORLEVEL 0 GOTO NOPROBLEM

ECHO    A Problem with "COPY" Has Occurred 
ECHO     Please Correct It and Try Again
GOTO END

:NOPROBLEM
move Q:\Temp.QDF "q:\Quicken.QDF"
move "C:\Quicken.QDF" "C:\QuickenBackup%date:~4,2%%date:~7,2%%date:~10,4%.QDF"


:END

pause
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top