Jump to content

Vbscript Kodları


FLaky
 Share

Recommended Posts

Option Explicit
On Error Resume Next
Const Macromed = 37
Dim Objshell
Dim oFSO
Dim FoldertoKill
Dim objFolder
Dim objFolderItem


Set oFSO = Createobject("scripting.filesystemobject")
Set objShell  = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(Macromed)
Set objFolderItem = objFolder.Self


FoldertoKill = objFolderItem.Path & "\Macromed"
ofso.DeleteFolder FoldertoKill, True
on error goto 0

arkadaşlar yukarıdaki kodlar ne anlama geliyor..ayrıca Const Macromed = 37 burdaki 37 yerine 41 yazdığımda değişen nedir..bilgisi olan warsa yardımlarınızı bekliyorum...

Link to comment
Share on other sites

  • Editor
ssfALTSTARTUP

    0x1d (29). File system directory that corresponds to the user's non-localized Startup program group.
ssfAPPDATA

    0x1a (26). Version 4.71. File system directory that serves as a common repository for application-specific data. A typical path is C:\Documents and Settings\username\Application Data.
ssfBITBUCKET

    0x0a (10). Virtual folder that contains the objects in the user's Recycle Bin.
ssfCOMMONALTSTARTUP

    0x1e (30). File system directory that corresponds to the non-localized Startup program group for all users. Valid only for Windows NT systems.
ssfCOMMONAPPDATA

    0x23 (35). Version 5.0. Application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data.
ssfCOMMONDESKTOPDIR

    0x19 (25). File system directory that contains files and folders that appear on the desktop for all users. A typical path is C:\Documents and Settings\All Users\Desktop. Valid only for Windows NT systems.
ssfCOMMONFAVORITES

    0x1f (31). File system directory that serves as a common repository for the favorite URLs shared by all users. Valid only for Windows NT systems.
ssfCOMMONPROGRAMS

    0x17 (23). File system directory that contains the directories for the common program groups that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs. Valid only for Windows NT systems.
ssfCOMMONSTARTMENU

    0x16 (22). File system directory that contains the programs and folders that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu. Valid only for Windows NT systems.
ssfCOMMONSTARTUP

    0x18 (24). File system directory that contains the programs that appear in the Startup folder for all users. A typical path is C:\Documents and Settings\All Users\Microsoft\Windows\Start Menu\Programs\StartUp. Valid only for Windows NT systems.
ssfCONTROLS

    0x03 (3). Virtual folder that contains icons for the Control Panel applications.
ssfCOOKIES

    0x21 (33). File system directory that serves as a common repository for Internet cookies. A typical path is C:\Documents and Settings\username\Application Data\Microsoft\Windows\Cookies.
ssfDESKTOP

    0x00 (0). Windows desktop—the virtual folder that is the root of the namespace.
ssfDESKTOPDIRECTORY

    0x10 (16). File system directory used to physically store the file objects that are displayed on the desktop. It is not to be confused with the desktop folder itself, which is a virtual folder. A typical path is C:\Documents and Settings\username\Desktop.
ssfDRIVES

    0x11 (17). My Computer—the virtual folder that contains everything on the local computer: storage devices, printers, and Control Panel. This folder can also contain mapped network drives.
ssfFAVORITES

    0x06 (6). File system directory that serves as a common repository for the user's favorite URLs. A typical path is C:\Documents and Settings\username\Favorites.
ssfFONTS

    0x14 (20). Virtual folder that contains installed fonts. A typical path is C:\Windows\Fonts.
ssfHISTORY

    0x22 (34). File system directory that serves as a common repository for Internet history items.
ssfINTERNETCACHE

    0x20 (32). File system directory that serves as a common repository for temporary Internet files. A typical path is C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files.
ssfLOCALAPPDATA

    0x1c (28). Version 5.0. File system directory that serves as a data repository for local (non-roaming) applications. A typical path is C:\Users\username\AppData\Local.
ssfMYPICTURES

    0x27 (39). My Pictures folder. A typical path is C:\Users\username\Pictures.
ssfNETHOOD

    0x13 (19). A file system folder that contains any link objects in the My Network Places virtual folder. It is not the same as ssfNETWORK, which represents the network namespace root. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Network Shortcuts.
ssfNETWORK

    0x12 (18). Network Neighborhood—the virtual folder that represents the root of the network namespace hierarchy.
ssfPERSONAL

    0x05 (5). File system directory that serves as a common repository for a user's documents. A typical path is C:\Users\username\Documents.
ssfPRINTERS

    0x04 (4). Virtual folder that contains installed printers.
ssfPRINTHOOD

    0x1b (27). File system directory that contains any link objects in the Printers virtual folder. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Printer Shortcuts.
ssfPROFILE

    0x28 (40). Version 5.0. User's profile folder.
ssfPROGRAMFILES

    0x26 (38). Version 5.0. Program Files folder. A typical path is C:\Program Files.
ssfPROGRAMFILESx86

    0x30 (48). Version 6.0. Program Files folder. A typical path is C:\Program Files, or C:\Program Files (X86) on a 64-bit computer.
ssfPROGRAMS

    0x02 (2). File system directory that contains the user's program groups (which are also file system directories). A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs.
ssfRECENT

    0x08 (8). File system directory that contains the user's most recently used documents. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Recent.
ssfSENDTO

    0x09 (9). File system directory that contains Send To menu items. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo.
ssfSTARTMENU

    0x0b (11). File system directory that contains Start menu items. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu.
ssfSTARTUP

    0x07 (7). File system directory that corresponds to the user's Startup program group. The system starts these programs whenever any user first logs into their profile after a reboot. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\StartUp.
ssfSYSTEM

    0x25 (37). Version 5.0. The System folder. A typical path is C:\Windows\System32.
ssfSYSTEMx86

    0x29 (41). Version 5.0. System folder. A typical path is C:\Windows\System32, or C:\Windows\Syswow32 on a 64-bit computer.
ssfTEMPLATES

    0x15 (21). File system directory that serves as a common repository for document templates.
ssfWINDOWS

    0x24 (36). Version 5.0. Windows directory. This corresponds to the %windir% or %SystemRoot% environment variables. A typical path is C:\Windows.

 

Oradaki rakamlar special folder denilen windows tarafından tanınan yollardır.37 system32 ye işaret ediyor.Yanikullanıcı senin verdiğin kod ile System32 altındaki macromed klasörünü silmek istemiş.

Link to comment
Share on other sites

  • 2 hafta sonra ...
http://tny.cz/8e4a285a

Burdaki kodlar baya bi uzun tam olarak ne yaptığını ayrıntılı olarak öğrenmek istiyorum...ayrıca script aşağıdaki parametre ile çalıştırılmış..Yardımlarınız için tşklerr...

 

 start /wait cscript /nologo aaa.vbs /keeponly
Edited by FLaky
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...