Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Xp remembers last "start in" directory?

Status
Not open for further replies.

WhiteWiz

MIS
Jan 29, 2001
113
CA
i have some machines that run cablecad and they have 2 shortcuts on the desktop, each starts cablecad with a different initial directory. This worked under window 2k but not under Windows XP as XP seems to remember what the last startup directory was and changes it to that irregardless of what the shorcut says. How can i turn this "helpfull" feature off?

sd
 
In Folder Options/ View see if checking or unchecking "Restore Previous Folder Windows at Logon" makes any difference.
 
no difference, i tried all the check boxes in there.
 
Have you got a Compatibility tab on your shortcut Properties? I wonder if setting it to 2000 would make any difference.
 
Type out here the contents of one of the batch files.
 
ok you asked for it:

Shortcut:
\\drafting1\c$\CableCad\BIN\CCADPWR.BAT RM_UP
startdir: c:\cablecad\bin
or
\\drafting1\c$\CableCad\BIN\CCADPWRH.BAT RM_UP
startdir: h:\recmgr

CCADPWR.BAT:
@ECHO OFF
REM === CCADPWR.BAT
REM === Prepared by: Sherif Samaan - Hitech Global Telecom
@ECHO ON
SET ENG=C:\CABLECAD\ENGHOUSE.INI
@ECHO OFF
REM === OVERWRITE STARTQUD.BAT ========================================================
COPY C:\CABLECAD\GNT\QUADSCAN\STARTQUD.PWR C:\CABLECAD\GNT\QUADSCAN\STARTQUD.BAT
REM ===================================================================================
@ECHO OFF
IF "%1"=="" GOTO EXIT
IF "%1"=="CC" GOTO CABLECAD
IF "%1"=="cc" GOTO CABLECAD
IF "%1"=="QUD" GOTO QUAD
IF "%1"=="qud" GOTO QUAD
IF "%1"=="RMUP" GOTO RM_UPDATE
IF "%1"=="rmup" GOTO RM_UPDATE
IF "%1"=="RMWK" GOTO RM_WORK
IF "%1"=="rmwk" GOTO RM_WORK
C:
CD C:\CABLECAD\MAPS
IF "%1"=="CCAD" GOTO CABLECAD
IF "%1"=="CFG" GOTO CONFIG
IF "%1"=="RM_WK" GOTO RM_WORK
IF "%1"=="RM_UP" GOTO RM_UPDATE
IF "%1"=="UTL" GOTO UTILITY
IF "%1"=="WIN" GOTO WIN_SHELL
GOTO EXIT
:CABLECAD
START /MAX C:\CABLECAD\BIN\CABLECAD.EXE
GOTO EXIT
:CONFIG
START /MAX C:\CABLECAD\BIN\CONFIG.EXE
GOTO EXIT
:QUAD
SET ENG=C:\CABLECAD\GNT\QUADSCAN\QUADSCAN.INI
C:\CABLECAD\GNT\BIN\QUDSCAN.EXE %2
SET ENG=C:\CABLECAD\ENGHOUSE.INI
GOTO EXIT
:RM_UPDATE
START /MAX C:\CABLECAD\BIN\CABLECAD.EXE /M RMI.OB +E .DBG.DBA.DBN.DBQ..DBI.DBJ.BBG.BBA.BBN.BBQ.BBI.BBJ
GOTO EXIT
:RM_WORK
START /MAX C:\CABLECAD\BIN\CABLECAD.EXE +E .DBG.DBA.DBN.DBQ.DBI.DBJ.BBG.BBA.BBN.BBQ.BBI +C 11 +H RECORDS +U 16
GOTO EXIT
:UTILITY
START /MAX C:\CABLECAD\BIN\UTL.EXE
GOTO EXIT
:WIN_SHELL
C:
CD C:\CABLECAD\MAPS
CALL CMD.EXE
GOTO EXIT
:EXIT


CCADPWRH.BAT:
@ECHO OFF
REM === CCADPWR.BAT
REM === Prepared by: Sherif Samaan - Hitech Global Telecom
@ECHO ON
SET ENG=C:\CABLECAD\ENGHOUSE.INI
@ECHO OFF
REM === OVERWRITE STARTQUD.BAT ========================================================
REM COPY C:\CABLECAD\GNT\QUADSCAN\STARTQUD.PWR C:\CABLECAD\GNT\QUADSCAN\STARTQUD.BAT
REM ===================================================================================
@ECHO OFF
IF "%1"=="" GOTO EXIT
IF "%1"=="CC" GOTO CABLECAD
IF "%1"=="cc" GOTO CABLECAD
IF "%1"=="QUD" GOTO QUAD
IF "%1"=="qud" GOTO QUAD
IF "%1"=="RMUP" GOTO RM_UPDATE
IF "%1"=="rmup" GOTO RM_UPDATE
IF "%1"=="RMWK" GOTO RM_WORK
IF "%1"=="rmwk" GOTO RM_WORK
H:
CD H:\RECMGR
IF "%1"=="CCAD" GOTO CABLECAD
IF "%1"=="CFG" GOTO CONFIG
IF "%1"=="RM_WK" GOTO RM_WORK
IF "%1"=="RM_UP" GOTO RM_UPDATE
IF "%1"=="UTL" GOTO UTILITY
IF "%1"=="WIN" GOTO WIN_SHELL
GOTO EXIT
:CABLECAD
START /MAX C:\CABLECAD\BIN\CABLECAD.EXE
GOTO EXIT
:CONFIG
START /MAX C:\CABLECAD\BIN\CONFIG.EXE
GOTO EXIT
:QUAD
SET ENG=C:\CABLECAD\GNT\QUADSCAN\QUADSCAN.INI
C:\CABLECAD\GNT\BIN\QUDSCAN.EXE %2
SET ENG=C:\CABLECAD\ENGHOUSE.INI
GOTO EXIT
:RM_UPDATE
START /MAX C:\CABLECAD\BIN\CABLECAD.EXE /M RMI.OB +E .DBG.DBA.DBN.DBQ..DBI.DBJ.BBG.BBA.BBN.BBQ.BBI.BBJ
GOTO EXIT
:RM_WORK
START /MAX C:\CABLECAD\BIN\CABLECAD.EXE +E .DBG.DBA.DBN.DBQ.DBI.DBJ.BBG.BBA.BBN.BBQ.BBI +C 11 +H RECORDS +U 16
GOTO EXIT
:UTILITY
START /MAX C:\CABLECAD\BIN\UTL.EXE
GOTO EXIT
:WIN_SHELL
H:
CD H:\RECMGR
CALL CMD.EXE
GOTO EXIT
:EXIT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top