0

ファイル名を変更し、そのファイルに関するExcelマクロを開いて操作を行う簡単なスクリプトがあります。実行すると、実際のファイルではなく、「FM-001761-01 Substrate Thickness.xls」というタイトルのコマンド プロンプトでファイルが開きます。コードは次のとおりです。

if exist "FM-001761-01 Substrate Thickness.xls" (
    msg "%username%" Please move the current FM-001761-01 Substrate Thickness.xls file
    quit
)
if exist qcprint.txt (
    if exist qcprint.csv (
        del qcprint.csv
        rename "qcprint.txt" qcprint.csv
        start "FM-001761-01 Substrate Thickness backup.xlsm"
    ) else (
        rename "qcprint.txt" qcprint.csv
        start "FM-001761-01 Substrate Thickness backup.xlsm"
    )
) else (
    if exist qcprint.csv (
        start "FM-001761-01 Substrate Thickness backup.xlsm"
    ) else (
        msg "%username%" Please load the "qcprint.txt" file to the flash drive.
    )
)

ここに画像の説明を入力

4

1 に答える 1