Restored from previous forum. Originally posted by Ralf.
I want to write a programm that find a file called "DIRECTB.EXE" and
copies a file "DB-BELEG.EXE" from DISKETTE to the Directory below, which is called "_UBLA". And than put an "VERKNÜPFUNG" to it to the desktop.
Find a File
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
find a file on disk" which will get you started. I can't help with the rest of
your query, sorry.
PB - Registered PureBasic Coder
There's a tip in the Tips 'n' Tricks section called "Tip: Tiny code toI want to write a programm that find a file called "DIRECTB.EXE"
find a file on disk" which will get you started. I can't help with the rest of
your query, sorry.
PB - Registered PureBasic Coder
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Ralf.
Is there something like "RTRIM".
Because on the below code i get for path: D:\DBTEST\DIRECTB.EXE.
But i only want to get D:\DBTEST\.
OpenConsole()
PrintN("Please input drivename in which you installed Direct Banking (z.B.: C:\, F:\) ")
Drive$=Input()
path$=Space(255)
r=SearchTreeForFile_(Drive$,"DIRECTB.EXE",path$)
If r=0
MessageRequester("Error","File not found ...",0)
Goto Ende
Else
MessageRequester("Location",path$,0)
EndIf
FoundPath$= path$ - "Directb.exe"
InstPath$ = FoundPath$ + "\_UBLA\"
PrintN(InstPath$)
CopyFile("A:\DB-Beleg.EXE",InstPath$)
Ende:
Is there something like "RTRIM".
Because on the below code i get for path: D:\DBTEST\DIRECTB.EXE.
But i only want to get D:\DBTEST\.
OpenConsole()
PrintN("Please input drivename in which you installed Direct Banking (z.B.: C:\, F:\) ")
Drive$=Input()
path$=Space(255)
r=SearchTreeForFile_(Drive$,"DIRECTB.EXE",path$)
If r=0
MessageRequester("Error","File not found ...",0)
Goto Ende
Else
MessageRequester("Location",path$,0)
EndIf
FoundPath$= path$ - "Directb.exe"
InstPath$ = FoundPath$ + "\_UBLA\"
PrintN(InstPath$)
CopyFile("A:\DB-Beleg.EXE",InstPath$)
Ende:
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm