Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VB Ordner erstellen

Empfohlene Antworten

Veröffentlicht

hallo zusammen,

ich echt am verzweifeln!! dieses sch**? ms dreck hat wieder ne super hilfe!!

ich versuch mit folgendem code einen ordner zu erstellen:

Private Declare Function CreateDirectory Lib "kernel32" Alias "CreateDirectoryA" (ByVal lpPathName As String, lpSecurityAttributes As Long) As Long

.

.

.

Private Sub Start_Click()

Dim lResult As Long

MsgBox Pfad

lResult = CreateDirectory(Pfad, 0)

MsgBox lResult

End Sub

Pfad ist eine Textbox.

Es wird aber kein Ordner erstellt.

Ich hab alle Berechtigungen für die Platte und weiß echt net mehr an was es liegt!!

Ciao

Antibiotik


Private Sub Form_Load()

Dim fs

Dim Ordnername As String


Ordnername = InputBox("Pfad")


Set fs = CreateObject("Scripting.FileSystemObject")

fs.CreateFolder (Ordnername)


End Sub

... jetzt frag ich mich nur noch wozu du diese MsgBox lResult brauchst?

hallo,

Original geschrieben von |roTekuGeL|

... jetzt frag ich mich nur noch wozu du diese MsgBox lResult brauchst?

die msgbox hab ich nur für testzwecke eingebaut!!

die msgbox lResult liefert immer ne 0 zurück und die null steht für fehler!!

Ciao

Antibiotik

Original geschrieben von Antibiotik

hallo,

die msgbox hab ich nur für testzwecke eingebaut!!

die msgbox lResult liefert immer ne 0 zurück und die null steht für fehler!!

Ciao

Antibiotik

Ja ok war mir nur nicht ganz sicher...

Also das Bsp. läuft so schon wenn du es in eine Form packst... musst halt nur den Pfad zu deiner Textbox 'umbauen'

(wenn du die MSDN Hilfe für Visual Studio 6.0 hast kannst du da alle methoden für das FileSystemObject sehen)

Wenn du nur ein Verzeichnis anlegen möchtest (z.B. C:\test, nicht aber C:\test\test), so kannst du einfach den Befehl MkDir benutzen.

Syntax:

MkDir Pfadname

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.