| |
| In diesem Forum haben Sie die Möglichkeit Kommentare, Fragen und Verbesserungsvorschläge zu den im vb@rchiv gelisteten Tipps und Workshops zu posten.
Hinweis: Ein neues Thema kann immer nur über die jeweilige Tipps & Tricks bzw. Workshop Seite eröffnet werden! | Fragen zu Tipps & Tricks und Workshops im vb@rchivTipp 1363: Anwendungs-/ System- und spezielle Verzeichnisse | | | Autor: Draxxon | Tipp anzeigenDatum: 07.06.08 23:09 |
| Hi all
Ich weiss nicht, ob ich einfach nur dumm bin, aber ich verstehe das nicht bzw. klappt das bei mir nicht, kann jemand mal bitte ein Beispiel dazu geben?
Danke im voraus | |
Re: Anwendungs-/ System- und spezielle Verzeichnisse | | | Autor: Draxxon | Datum: 07.06.08 23:10 |
| Ps bitte zu Anwendungsverzeichnung und Startup
Hier mal mein quelltext:
FileCopy " 'Pfad meiner exe' ", "C:\shutdown5.exe"
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shell")
Dim MyShortcut
Set MyShortcut = WSHShell.CreateShortcut("C:\shutdown54.lnk")
MyShortcut.TargetPath = WSHShell.ExpandEnvironmentStrings("C:\shutdown5.exe")
MyShortcut.WorkingDirectory = WSHShell.ExpandEnvironmentStrings("C:")
MyShortcut.WindowStyle = 4
MyShortcut.IconLocation = WSHShell.ExpandEnvironmentStrings("c:\shutdown5.exe, 0")
MyShortcut.Save
FileCopy "c:\Shutdown54.lnk", " 'ins autostart' "
Timer1.Enabled = False
Beitrag wurde zuletzt am 07.06.08 um 23:38:59 editiert. | |
Re: Anwendungs-/ System- und spezielle Verzeichnisse | | | Autor: Draxxon | Datum: 08.06.08 11:58 |
| achos thx werd ich sofort ausprobieren, dass macht dann natürlich sinn hab gar nivcht darauf geachtet das es vb net ist | |
Re: Anwendungs-/ System- und spezielle Verzeichnisse | | | Autor: Draxxon | Datum: 08.06.08 12:07 |
| Hi nochmal,
kann mir jetzt jemand zu dem neuen link ein beispiel geben, ich wiess einfach nicht, wo datei angabe hingehört (bin noch nen relativ ein anfänger) | |
Re: Anwendungs-/ System- und spezielle Verzeichnisse | | | Autor: Guenterp66 | Datum: 12.09.10 12:20 |
| und wieder einmal die mobile version, da beim mobile die enums viele folder NICHT enthalten:
Public Enum ceFolders As Integer
CSIDL_APPDATA = &H1A 'File system directory that serves as a common
' repository for application-specific data.
CSIDL_DESKTOP = &H0 'Not supported on Smartphone.
CSIDL_DESKTOPDIRECTORY = &H10 'File system directory used to
' physically store file objects on the desktop (not to be confused
' with the desktop folder itself).
CSIDL_FAVORITES = &H6 'The file system directory that serves as a
' common repository for the user's favorite items.
CSIDL_FONTS = &H14 'The virtual folder that contains fonts.
CSIDL_MYMUSIC = &HD 'Folder that contains music files.
CSIDL_MYPICTURES = &H27 'Folder that contains picture files.
CSIDL_MYVIDEO = &HE 'Folder that contains video files.
CSIDL_PERSONAL = &H5 'The file system directory that serves as a
' common repository for documents.
CSIDL_PROFILE = &H28 'Folder that contains the profile of the user.
CSIDL_PROGRAM_FILES = &H26 'The program files folder.
CSIDL_PROGRAMS = &H2 'The file system directory that contains the
' user's program groups, which are also file system directories.
CSIDL_RECENT = &H8 'File system directory that contains the user's _
most recently used documents.
CSIDL_STARTUP = &H7 'The file system directory that corresponds to
' the user's Startup program group. The system starts these _
programs when a device is powered on.
CSIDL_WINDOWS = &H24 'The Windows folder.
End Enum
Private Declare Function SHGetSpecialFolderPath Lib "coredll.dll" ( _
ByVal hwndOwner As Integer, ByVal lpszPath As String, ByVal nFolder _
As ceFolders, ByVal fCreate As Boolean) As Boolean
Public Shared Function getSpecialFolder(ByVal Folder As ceFolders) As _
String
Try
Dim sPath As New String(" "c, 260)
SHGetSpecialFolderPath(0, sPath, Folder, False)
Return sPath
Catch ex As Exception
Return String.Empty
End Try
End Function und ein nützlicher link:
http://msdn.microsoft.com/en-us/library/aa446536.aspx
Beitrag wurde zuletzt am 12.09.10 um 12:38:27 editiert. | |
| Sie sind nicht angemeldet! Um einen neuen Beitrag schreiben zu können, müssen Sie sich zunächst anmelden.
Einloggen | Neu registrieren |
|
|
sevISDN 1.0
Überwachung aller eingehender Anrufe!
Die DLL erkennt alle über die CAPI-Schnittstelle eingehenden Anrufe und teilt Ihnen sogar mit, aus welchem Ortsbereich der Anruf stammt. Weitere Highlights: Online-Rufident, Erkennung der Anrufbehandlung u.v.m. Weitere InfosTipp des Monats sevZIP40 Pro DLL
Zippen und Unzippen wie die Profis!
Mit nur wenigen Zeilen Code statten Sie Ihre Anwendungen ab sofort mit schnellen Zip- und Unzip-Funktionen aus. Hierbei lassen sich entweder einzelnen Dateien oder auch gesamte Ordner zippen bzw. entpacken. Weitere Infos
|
|
|
Copyright ©2000-2024 vb@rchiv Dieter Otter Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.
Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel
|
|