- PROBLEMCHYLD
- Posts: 1001
- Joined: 2013-03-22 12:55
Does anyone here no how to create VB Scripts. I need a VBS to disable the Recycle Bin, but giving you the option to choose which drive to disable.
http://msdn.microsoft.com/en-us/library/yfdfhz1b.aspx
And your target is -> [HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionexplorerBitBucket]
And your target is -> [HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionexplorerBitBucket]
PROBLEMCHYLD, I'm on XP and under:
HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionexplorerBitBucket
There's keys for my drives c,d,f:
Anyway, this works for me:
The Dword "NoRecycleFiles" and its value were created by the script. Not sure if this would suit your needs.
HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionexplorerBitBucket
There's keys for my drives c,d,f:
Anyway, this works for me:
Code: Select all
Dim WshShell, bKey
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKLMSoftwareMicrosoftWindowsCurrentVersionexplorerBitBucketCNoRecycleFiles", &H00000001&, "REG_DWORD"
The Dword "NoRecycleFiles" and its value were created by the script. Not sure if this would suit your needs.
This RegWrite f**cn shit do not support writing more then 4 bytes of binary data". "PurgeInfo" Key is 72 bytes of binary data.
^PROBLEMCHYLD, Is it necessary to be VBScript?
I can write a "normal" program for such purposes, if you want?
^PROBLEMCHYLD, Is it necessary to be VBScript?
I can write a "normal" program for such purposes, if you want?
- PROBLEMCHYLD
- Posts: 1001
- Joined: 2013-03-22 12:55
I need it in VB Script if you can do it. It will be needed in the SP, one of the reasons I haven't released 3.34 yet. Its no rush, take your time.