応用してソフトを作ろうとして骨組みを作ったのですが、
なぜかうまくいきません。
先にスクリプトを書きます。
*top0 screen 0 title "Application Opener" notesel buf Line_Max = noteinfo(0) exist "apcdata.dat" if strsize = -1: goto *new *re dialog "dat",16,"apcdata.datを選択してください。" if stat=0 : end *top noteload refstr objsize 200,24 button "ファイル・アプリケーションの追加",*plus repeat notemax if cnt\2 == 0 : continue noteget name,cnt button name,*label loop button "エクスプローラ",*exp button "コマンドプロンプト",*prom button "メモ帳",*text pos 201,54 button "変更を保存して再起動",*top0 stop *plus dialog "exe",16,".exe以外で登録するとエラーになります。" if stat=0 :stop buf=refstr split buf, "\\", results aa=stat-1 bb=results(aa) dialog "ファイル"+refstr+"を\n追加します。よろしいですか?",3,"" put =""+ refstr if stat = 6 : dialog "追加しました。",0 : noteadd put,notemax: noteadd bb,Line_Max+1 : notesave "apcdata.dat" stop *new notesave "apcdata.dat" goto*re *label if stat=0 : noteget name,0 : exec name if stat=1 : noteget name,2 : exec name if stat=2 : noteget name,4 : exec name if stat=3 : noteget name,6 : exec name if stat=4 : noteget name,8 : exec name if stat=5 : noteget name,10 : exec name if stat=6 : noteget name,12: exec name if stat=7 : noteget name,14: exec name if stat=8 : noteget name,16 : exec name if stat=9 : noteget name,18 : exec name stop *exp exec "Explorer.exe" stop *prom exec "Cmd.exe" stop *text exec "Notepad.exe" stop
これで実行し、.exeのファイルを選択し.datに保存したのですが
以前は.datにディレクトリとディレクトリ最後列が2段に分けて記録されていました。
例)
C:\HSP\HSPgame\hsptmp.exe
hsptmp.exe
ですが、なぜかこれだと保存しても
C:\HSP\HSPgame\hsptmp.exe
だけしか保存されておらず、
2回目以降はそこに上書きという形になってしまいました。
どうしてでしょうか?
説明が分かりにくかったらすいません。