DropIcons für alle Vier Verknüpfungen erweitert zur Extraktion des TExtes und zur ÜBersetzung einer dxf Datei
This commit is contained in:
+18
-2
@@ -12,14 +12,30 @@ set SHORTCUT2=%INSTALL_DIR%\IOconverter.lnk
|
||||
set TARGET2=%PROJECT_BIN%\ioconverter.bat
|
||||
set ICON2=%PROJECT_DOC%\img\Icons\Icon_portal.ico
|
||||
|
||||
set SHORTCUT3=%INSTALL_DIR%\dxf2txt.lnk
|
||||
set TARGET3=%PROJECT_BIN%\tr2txt_cs.bat
|
||||
set ICON3=%PROJECT_DOC%\img\Icons\dxf2txt.ico
|
||||
|
||||
set SHORTCUT4=%INSTALL_DIR%\translate2CS.lnk
|
||||
set TARGET4=%PROJECT_BIN%\tr2dxf_cs.bat
|
||||
set ICON4=%PROJECT_DOC%\img\Icons\dxfCS.ico
|
||||
|
||||
REM ersetze die Zeile mit setenv.bat durch die mit dem neuen Pfad
|
||||
powershell -Command "(Get-Content getexdraw.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content getexdraw.bat"
|
||||
powershell -Command "(Get-Content ioconverter.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content ioconverter.bat"
|
||||
powershell -Command "(Get-Content tr2txt_cs.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content tr2txt_cs.bat"
|
||||
powershell -Command "(Get-Content tr2dxf_cs.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content tr2dxf_cs.bat"
|
||||
|
||||
REM Icon1 anlegen
|
||||
REM Icon1 anlegen für getexdraw
|
||||
powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT1%');$s.TargetPath='%TARGET1%';$s.IconLocation='%ICON1%';$s.Save()"
|
||||
REM Icon2 anlegen
|
||||
REM Icon2 anlegen für Ioconverter
|
||||
powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT2%');$s.TargetPath='%TARGET2%';$s.IconLocation='%ICON2%';$s.Save()"
|
||||
|
||||
REM Icon für Txt Extraktion anlegen
|
||||
powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT3%');$s.TargetPath='%TARGET3%';$s.IconLocation='%ICON3 %';$s.Save()"
|
||||
REM Icon für CS Übersetzung anlegen
|
||||
powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT4%');$s.TargetPath='%TARGET4%';$s.IconLocation='%ICON4 %';$s.Save()"
|
||||
|
||||
|
||||
REM Öffne den Ordner damit man sieht ob es geklappt hat
|
||||
explorer.exe %INSTALL_DIR%
|
||||
|
||||
Reference in New Issue
Block a user