Autor Beitrag
LDMatrix17
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 73

xXpProOxsP2x
Flash5~Flash7 MX 2004 Prof.~Flash 8 Prof.~Delphi 7 prof.&HTML
BeitragVerfasst: Do 23.03.06 18:34 
Hall Leute! erstmal wie gehts euch?

String = ( 'C:\Neuer Ordner mit Leerzeichen\Neuer-Ordner' )

Ich möchte meine String zerlegen und zwar soO
( 'C:\"Neuer Ordner mit Leerzeichen"\"Neuer Ordner"\ )
Ich brauche es für XCopy befehl!

im Forum gibts schon genug Beispielen, but die funktionieren nicht wie ich will..
es wäre sehr dankbar wenn ein beispiel dabei ist.

Christian


Moderiert von user profile iconraziel: Topic aus Off Topic verschoben am Do 23.03.2006 um 17:43

_________________
~sOm3!~gUrLs!~sOm3!~dAyS!~L!f3~iS!~nOT!~bOriNg!!~
mtin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177

Win XP SP2
BDS2006 Enterprise
BeitragVerfasst: Do 23.03.06 18:44 
mit pos() und copy() dürfte das kein Problem sein...

such nach dem ersten \, mach danach ein " rein, dann such nach allen nachfolgenden und mach da davor und danach eins rein und beim letzten dann musst du nochmal ..."\" das allerletzte " löschen...
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Do 23.03.06 18:50 
tse tse, warum einfach wenn's auch kompliziert ist?

Schau mal in die Hilfe und suche SHFileOperation.
(ggf. ins SDK) Windows hat alles OnBoard, nur nutzen musst du es.

Gibts ab W9x

grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 23.03.06 18:53 
Darf ich fragen, wie SHFileOperation sein Problem lösen soll? Mit SHFileOperation kannst du zwar zB Dateien oder Ordner umbenennen, aber er sucht ja eine Möglichkeit, nur den Ordnername (bzw. Pfad) etwas zurechtzu"biegen" (einfügen von "). Vergleiche auch: www.delphipraxis.net...shfileoperation.html

AXMD
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Do 23.03.06 18:55 
user profile iconAXMD hat folgendes geschrieben:
Darf ich fragen, wie SHFileOperation sein Problem lösen soll? Mit SHFileOperation kannst du zwar zB Dateien oder Ordner umbenennen, aber er sucht ja eine Möglichkeit, nur den Ordnername (bzw. Pfad) etwas zurechtzu"biegen" (einfügen von "). Vergleiche auch: www.delphipraxis.net...shfileoperation.html

AXMD


user profile iconLDMatrix17 hat folgendes geschrieben:
Ich brauche es für XCopy befehl!

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
LDMatrix17 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 73

xXpProOxsP2x
Flash5~Flash7 MX 2004 Prof.~Flash 8 Prof.~Delphi 7 prof.&HTML
BeitragVerfasst: Do 23.03.06 18:55 
gut! aber Xcopy hat noch mehr erweiterbare funktionen ( /S /E /M /F )
wenn ich das alles selber kann!! :shock:

_________________
~sOm3!~gUrLs!~sOm3!~dAyS!~L!f3~iS!~nOT!~bOriNg!!~
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 23.03.06 18:58 
Logisch kannst du das alles selber. Aber der Pfad muss insgeamt in " eingefast werden, also so:
'"C:\Neuer Ordner mit Leerzeichen\Neuer-Ordner"'.
LDMatrix17 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 73

xXpProOxsP2x
Flash5~Flash7 MX 2004 Prof.~Flash 8 Prof.~Delphi 7 prof.&HTML
BeitragVerfasst: Do 23.03.06 19:10 
wow!!! wow!!!
that's nice!

thank u Lucky, ur the best one! :lol: :lol: :lol:

_________________
~sOm3!~gUrLs!~sOm3!~dAyS!~L!f3~iS!~nOT!~bOriNg!!~