Recommended Posts

Anyone got any ideas for other useful vbcripts?

my compliments for great scripts and Ideas.

What abot a script for "ALL PROGRAMS" menu like the one found in Start Menu??

I have a problem with Fast Explorer tho . .

Desktop / Folder background does not appear in the file type list . .

How do I overcome this problem ?

  • 5 months later...

Great work Cydine. I've been looking for something like this for a while now.

Here is an easy way to restore your FastExplorer settings. This is good for adding FolderViewXp.vbs to multiple computers or after reinstialling Windows. You will have to use FE one time to setup your menu but after that you can restore your settings with one click and without using/installing FE.

Step 1. Follow Cydine's insturctions on setting up FE.

Step 2. Make a folder on your desktop (the name isn't important). Copy the following files into that folder.

FE2001.ini (x:\windows\FE2001.ini)

FEShlExt.dll (in the folder you extracted FastExplorer to)

FolderViewXP.vbs (I have no idea where you put this :woot: )

Step 3. Open notepad and paste in the following text. When done save it in the folder you created as fe.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{693BE9C0-BEC3-11D2-B4C1-C33BBD3AD64B}]

@="Fast Explorer Shell Extension"

[HKEY_CLASSES_ROOT\CLSID\{693BE9C0-BEC3-11D2-B4C1-C33BBD3AD64B}\InprocServer32]

@="%systemroot%\\system32\\FEShlExt.DLL"

"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{693BE9C0-BEC3-11D2-B4C1-C33BBD3AD64B}\InprocServer32]

@="%systemroot%\\system32\\FEShlExt.DLL"

"ThreadingModel"="Apartment"

Step 4. Open notepad again and paste in the following text. When done save it in the folder you created as Setup.bat

@echo off

cd %cd%

reg import fe.reg

move FE2001.ini %windir%

move FolderViewXP.vbs %systemroot%\system32

move FEShlExt.dll %systemroot%\system32

regsvr32 FEShlExt.dll /s

Step 5. Zip all the files in the folder you created and your done. When you need to restore your settings just extract the zip file and run setup.bat.

This was written for FolderViewXP.vbs but should work (with a little modding) with any of the vbs files posted so far.

I wasn't sure if anyone would be able to use that or not so I'm glad you can :) .

Miran it's pretty easy to make this vb script show/hide file extensions.

1. Change all instances of the word "Hidden" with "HideFileExt"

2. Change 2, "REG_DWORD" to 0, "REG_DWORD"

3. Change Do not show hidden files and folders & Show hidden files and folders appropriately

I edited the code so you dont have to enter a foldername everytime it just creates a folder called new folder (1,2,3,4,5,6 & etc)

'NewFolder.vbs

Option Explicit
  Dim fso, ws, objArgs, Title
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set ws = CreateObject("Wscript.Shell")
  Set objArgs = WScript.Arguments
  Dim id


Call Folder
Call Cleanup

Sub Folder
  Dim strArg, FolderPath, FolderTemp

  For Each strArg in objArgs
    FolderTemp = FolderTemp & " " & strArg
  Next

  FolderPath = Trim(FolderTemp)
  
  On Error Resume Next

  fso.CreateFolder FolderPath & "New Folder"

  if Err.Number = 58 Then
    Err.Clear:On Error GoTo 0  
    Call FolderID

  ElseIf Err.Number = 52 Then
    Err.Clear:On Error GoTo 0
    ws.Popup Chr(34) & "ERF" & Chr(34) & " contains invalid character(s).", ,Title, 0 + 48 + 4096

  End if  
End Sub

Sub FolderID
  Dim strArg, FolderPath, FolderTemp

  if (id = vbNullString) then
    id = 1
  End if

  For Each strArg in objArgs
    FolderTemp = FolderTemp & " " & strArg
  Next

  FolderPath = Trim(FolderTemp)
  
  On Error Resume Next

  fso.CreateFolder FolderPath & "New Folder (" & id & ")"

  if Err.Number = 58 Then
    Err.Clear:On Error GoTo 0 
    id = id +1 
    Call FolderID

  ElseIf Err.Number = 52 Then
    Err.Clear:On Error GoTo 0
    ws.Popup Chr(34) & "ERF" & Chr(34) & " contains invalid character(s).", ,Title, 0 + 48 + 4096

  End if  
End Sub


Sub Cleanup
	Set ws = Nothing
	Set fso = Nothing
	WScript.Quit
End Sub

the superfolderview one didnt work for me, it says theres an error on line 8 character 1

i really have no idea, i'll leave it to you guys, if you can fix it great, if not, no worries.

EDIT: nevermind i fixed it, stupid me pasted it twice into notepad....lol

Here's one for a command prompt.

'CmdPrompt.vbs

Dim fso, ws, objArgs
Set fso = CreateObject("Scripting.FileSystemObject")
Set ws = CreateObject("Wscript.Shell")
Set objArgs = WScript.Arguments

Call CmdPrompt

Call Cleanup

Sub CmdPrompt
Dim strArg, FolderTemp, FolderPath
For Each strArg in objArgs
FolderTemp = FolderTemp & " " & strArg
Next
FolderPath = Trim(FolderTemp)
ws.run "cmd.exe /k cd /d " & FolderPath
End Sub

Sub Cleanup
Set ws = Nothing
Set fso = Nothing
WScript.Quit
End Sub  

  • 4 months later...

Just discovered this topic today :woot: it's awesome guys, well done! Wicked scripts cydine :D

Thought of a script idea that will be useful, how about one that copies the selected file's full path to the clipboard. And if clicked on a folder background, then the folder's path?

What do ya think cydine? :whistle:

  • 4 months later...
wow thanks for this, even if im a little late :laugh:

585246626[/snapback]

and thanks to you for bumping this as i was looking for this few weeks ago but could not find it!

also thanks to original poster and cydine for his help - this is an essential trick/tweak in my book

any chance of someone making this into one small .reg file or something similar so you just have to open it then it adds the "Show hidden files/Hide Hidden Files" to the context menu? for us lazy/not-so-techie folk who dont want to download flash explorer and all that stuff :p

(btw its 5:29am and i just skimmed through this thread so forgive me if i missed a post which has what im asking for :) )

Anyone know what to add to this to make the window automatically refresh?

(Same as pressing F5)

On Error Resume Next
Set WSHShell=Wscript.CreateObject("Wscript.Shell") 

X = WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden")

If X = "1" Then 
    WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "2", "REG_DWORD"
Elseif X = "2" Then
    WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "1", "REG_DWORD"
End If

Set WshShell = Nothing

  • 2 months later...
  • 3 years later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Oddly, there was a time that UFC games were culturally relevant, largely because of the graphics and gameplay that was different than the norm. But it seems like as the sport grew in popularity, gaming outlets stopped talking about the games.
    • Microsoft Edge 149.0.4022.69 by Razvan Serea Microsoft Edge is a super fast and secure web browser from Microsoft. It works on almost any device, including PCs, iPhones and Androids. It keeps you safe online, protects your privacy, and lets you browse the web quickly. You can even use it on all your devices and keep your browsing history and favorites synced up. Built on the same technology as Chrome, Microsoft Edge has additional built-in features like Startup boost and Sleeping tabs, which boost your browsing experience with world class performance and speed that are optimized to work best with Windows. Microsoft Edge security and privacy features such as Microsoft Defender SmartScreen, Password Monitor, InPrivate search, and Kids Mode help keep you and your loved ones protected and secure online. Microsoft Edge has features to keep both you and your family protected. Enable content filters and access activity reports with your Microsoft Family Safety account and experience a kid-friendly web with Kids Mode. The new Microsoft Edge is now compatible with your favorite extensions, so it’s easy to personalize your browsing experience. Microsoft Edge 149.0.4022.69 changelog: Fixed an issue that caused the Downloads dialog to continue displaying the "Keep/Delete" prompt for .rdp files after the download completed. Stable channel security updates are listed here. Download: Microsoft Edge (64-bit) | 193.0 MB (Freeware) Download: Microsoft Edge (32-bit) | 170.0 MB Download: Microsoft Edge (ARM64) | 188.0 MB View: Microsoft Edge Website | Release History Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Save 44% on Intuit QuickBooks Desktop Pro Plus 2024 (1 User for 1-Year) by Steven Parker Today's highlighted deal comes via our Apps + Software section of the Neowin Deals store, where for only a limited time, you can save 44% on Intuit QuickBooks Desktop Pro Plus 2024 (1 User + 1 Year) for Windows. Take control of your business finances with Intuit® QuickBooks® Desktop Pro Plus 2024 Lifetime Activation for Windows. This powerful accounting software simplifies bookkeeping, expense tracking, invoicing, and financial management—all in one intuitive platform. Designed for small business owners, freelancers, and accountants, QuickBooks® Desktop Pro Plus 2024 ensures accuracy, efficiency, and seamless transaction tracking. Stay organized, save time, and manage your finances with confidence—no subscriptions, just lifetime access! Financial and business management Comprehensive Financial Management: Gain access to a full suite of features designed to handle everything from creating invoices & managing expenses to generating reports and tracking sales. Enhanced Reporting Tools: Generate professional reports & insights to make informed financial decisions and help you stay ahead of your business goals. Job Costing: Track the profitability of specific jobs or projects. Fixed Asset Management: Track the depreciation & value of fixed assets. Customer & Vendor Management: Organize information, streamline communication & enhance customer relations. Sales Order Processing: Create & manage sales orders from start to finish. Purchase Order Processing: Create & manage purchase orders to streamline vendor payments. Improved Inventory Management: Enhanced features for tracking inventory levels & costs. Automation, integration, and support Enhanced Bank Feeds: Web Connect (manual QBO imports), works on all licenses for easier bank reconciliation Time Tracking: Track employee time to accurately calculate payroll and project costs Easy Data Import: Quickly transfer financial data from Excel or older QuickBooks® versions Why choose Intuit® QuickBooks® Desktop Pro Plus 2024? Effortless Installation: Quick and easy setup with step-by-step guidance. No Hidden Costs: One-time payment—no subscriptions or recurring fees. Direct Official Download: Access the software securely from the official QuickBooks® website. Stay Up to Date: Get the latest updates and features for optimal performance. Multilingual Support: Available in multiple languages to suit your needs. Lifetime Access: A one-time purchase means no ongoing costs. IMPORTANT: Cloud integrations (QuickBooks Payments, TurboTax, and Online logins) are NOT included. Good to know: Length of access: lifetime Redemption deadline: redeem your code within 30 days of purchase Access options: Windows Max number of device(s): 2 (for 1 user only and can't be used simultaneously) Version: 2024 (United States) 64-bit Available to both NEW and EXISTING users For US customers only Updates included An Intuit QuickBooks Desktop Pro Plus 2024 (1 User + 1-Year) for Windows: Lifetime License normally costs $536, but it can be yours for just $299.99 for a limited time, a saving of $236. There are also other plans available. For specifications, and license info please click the link below. Get Intuit QuickBooks Desktop Pro Plus 2024 for just $299.99 This is a time limited deal For US customers only. Support queries If you have queries or need support for any of the Neowin Deals, please use the contact form here. Neowin Deals are managed and sold by StackCommerce who represent Neowin on an affiliate basis. Why we post these deals We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. So for those that keep moaning and complaining, be thankful we're still online for you to even do that. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
    • AFAIK you shouldn't be getting a consent popup at all from Canada, so I think it is to do with a VPN or private/secure DNS.
    • From what I see it's only for Insider - preview builds. Not for everybody. So...
  • Recent Achievements

    • Week One Done
      agatameier earned a badge
      Week One Done
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      175
    3. 3
      PsYcHoKiLLa
      139
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!