| |
|
|
Andreas Spelter | Moin moin,
I get a Textdatei supplied The data contains The I grafisch present would like. The File has always whom same names and comes on of/ one PCMCIA-ticket therefore. with my Program would like I now several this Files one à ¶ Open characters circa these together vergleichen to.
means starte I my Program and read The first File with folgendem Programmteil one and let tappt im dunkeln draw: CompileMarkSeparationassign #1,sDatei$
reset #1
input #1,sZeile$ Datum lesen
sDatei$=mid$(sZeile$,13,4)+"-"+mid$(sZeile$,10,2)+"-"+mid$(sZeile$,7,2)+"_"+mid$(sZeile$,1,2)+"-"+mid$(sZeile$,4,2)
...
input #1,sZeile$
rX%=val(substr$(sZeile$,2,","))
rY%=val(substr$(sZeile$,5,","))
moveto (rX0%+rX%*3.5),(rY0%-rY%*1.5)
whilenot @eof(#1)
input #1,sZeile$
rX%=val(substr$(sZeile$,2,","))
rY%=val(substr$(sZeile$,5,","))
lineto (rX0%+rX%*3.5),(rY0%-rY%*1.5)
endwhile
close #s=s2>1
after now then The first curve drawn is, must The PCMCIA-ticket means from the Notebook out and in a printer with of/ one new File described and be very here begins my trouble: windows 2000 refusing the ticket To deaktivieren, it behauptet always tappt im dunkeln would yet uses what about me solle it later again try. but too hours later goes it not yet, first if I my Program finish can I The ticket deaktivieren. If I The ticket with aktivem Program simply so entferne I get schimpfe Windows at next einstecken the ticket piepst windows then of course, finds The ticket but nevertheless not and my Program then self-evident neither. means ticket again out, again Mecker Windows, ticket again mere and everything is again well. I can The ticket reading but thereafter again not deaktivieren and the whole game begins again of in front.
If my Program not runs can I The ticket jedesmal deaktivieren or under windows-Gemecker simply so Remove at next sandwich becomes tappt im dunkeln immediate recognized.
somehow shining means my close #1 The ticket not freizugeben. it'll but really jedesmal go through.
what can I against this Error do?
greetings Andreas |
|
|
| |
|
|
|
| now, i see the trouble.
Einfache question for beginning: If assign/close there Perhaps something verbasselt - try still extern on the file To come.
either probierst You it first with the Profanschem copy or then with the Command.com / Cmd copy.
Virtually: CompileMarkSeparationshell "cmd /c copy file.txt c:\tmp.txt"
assign #1,"C:\tmp.txt"
. re> so get at least out obs really on the Profane or on the OS lying.
salvo, iF |
|
|
| |
|
|
|
| Hello Andreas...
unfortunately have I none blassen Schimmer of PCMCIA - but Perhaps helps something Brainstorming.
try still time with z.B. CompileMarkSeparation to the Closing the File your Arbeitsverzeichnis on your Festplatte To lay. |
|
|
| |
|
|
|
Jörg Sellmeyer | Hello Andreas, Perhaps reicht already one FileMode 0 for Readonly to the Assign. Greeting Jörg |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 12/01/04 ▲ |
|
|
|
|
Andreas Spelter | thanks for hints, everything probiert, nothing helps:
as long as my Program active is can I The ticket not deaktivieren, self then not if I The File from the ticket with shell cmd... on The Festplatte copies and of there red have.
yet More ideas?
Andreas
PS: Have straight another Notebook with windows 98 found, the position itself with my Program not so pingelig on: ticket out, ticket mere, reading goes. |
|
|
| |
|
|
|
| I Have you here time ne dll gebastelt - versuchs time so.
important thereby is the The DLL not by usedll loaded becomes - separate only by extern. The DLL has too only a function CP Filename1 Filename2 CopyFileMode.
with the einstellbaren CopyFileMode can You Yes time rummspielen.
It can but his the The DLL komischen Pfaden not klarkommt. Teste it Please first How I on LW C. means by me klappte it wonderful.
so GEHTS: CompileMarkSeparationsalvo, iF |
|
|
| |
|
|
|
Andreas Spelter | thanks for trouble, but these DLL does not work for me.
- under windows 98 depends itself the program simply lane - under windows 2000 there always two Fehlermeldungen and is then lane - under Windows XP created it either a File with wirrem Filenames and falschem Content or is to two Fehlermeldungen lane
I had for these try too really only this program Translated:
cls print external (cp.dll,cp,c:est1.txt,c:est2.txt,0)+ Bytes waitkey end
Andreas |
|
|
| |
|
|
|
| which Profan have?
If <xprofan, then make instead of
print external (cp.dll,cp,c:est1.txt,c:est2.txt,0)+ Bytes
simply
f1$=c:est1.txt f2$=c:est2.txt print external (cp.dll,cp,addr(f1$),addr(f2$),0)+ Bytes
salvo, iF |
|
|
| |
|
|
|
Andreas Spelter | I work here with Profan 7.0 under Windows XP.
with the detour over The variables has it once almost functions: it watts The right File copies, the target having too whom right names end the File get however some Lines deleted and irgendwelcher nonsense appended.
with all further try passierte however nothing more, neither to one Neustart Windows, the program depends itself now always to Test lane.
Andreas
cls declare f1$ declare f2$ print Test f1$=c:est1.txt f2$=c:est2.txt print external(cp.dll,cp,addr(f1$),addr(f2$),0)+ Bytes waitkey end |
|
|
| |
|
|
|
Jörg Sellmeyer | Hi, you mußt In any drop either Großbuchstaben for Literale using or whom Backslash twice write. otherwise interprets Profan the as tabulator. means: C:TEST.TXT c:\Test.txt If it objectively already with print Test depends, falls me though too nothing to a. Greeting Jörg |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 12/02/04 ▲ |
|
|
|
|
| Related to the Print <- was wirklichn blödes example. would be Yes not The 1. Language with Escsequenzen.
Machs still differently - if The application exits his must - then finish tappt im dunkeln still. makes we one ploy. red your Exe the File simply over ne 2. instance copy. Solle still your exe itself self Call with nem parameter.
shell par$(0)+ -copyit
your exe position in the beginning the Program solid the it with nem Parameter launched watts:
if trim$(par$(1))=-copyit
copy bla bla END
endif
and copies the File. The exe The it copied is still then exits.
what there now the Difference his should between the appeal of/ one CMD or of/ one own exe white so did i not - but one attempt isses worth.
salvo, iF |
|
|
| |
|
|
|
Andreas Spelter | It's all right forth: the copy functions now, but the File at copy changed:
Andreas
cls declare f1$ declare f2$ print Test f1$=d:\Test1.txt f2$=d:\Test2.txt print external(cp.dll,cp,addr(f1$),addr(f2$),0)+ Bytes waitkey end |
|
|
| |
|
|