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

    • Same, never saw it on Android or iOS. Guess only some people got it *shrugs*
    • Anthropic pulls Fable 5 and Mythos 5 after US export control order by Pradeep Viswanathan In April this year, Anthropic launched the Claude Mythos Preview frontier model with state-of-the-art cyber and coding capabilities for a select set of companies around the world. After preparing appropriate guardrails, early this week, Anthropic launched Claude Fable 5 and Mythos 5, its most capable AI models. Claude Fable 5 is for general users and comes with strict safeguards, while Mythos 5 is designed with fewer safeguards for cybersecurity and biology use cases. Today, Anthropic abruptly suspended access to its Fable 5 and Mythos 5 AI models for all customers after receiving an export control directive from the US government. The company received the directive from the government today at 5:21 p.m. ET, and the received letter did not provide any details regarding the national security concern. Anthropic understands that the government became aware of a method to bypass, or “jailbreak,” Fable 5, which might be the reason behind the directive. The order was issued under national security authorities and requires the company to suspend all access to Fable 5 and Mythos 5 by any foreign national, whether they are inside or outside the United States. The restriction also applies to foreign national employees working at Anthropic. As a result, the company has disabled both models for all customers to ensure compliance. Access to previous Anthropic models like Opus and Sonnet is not affected by this government order. The company highlighted that it had developed strong safeguards to reduce the possibility that Fable is misused for tasks related to cybersecurity. In fact, many developers are complaining that the safeguards are going overboard. Additionally, the company worked with the US government, the UK AISI, multiple private third-party organizations, and internal teams to red-team Fable’s safeguards for thousands of hours. Finally, Anthropic noted that no testers have yet been able to find a universal jailbreak on Fable 5. As expected, Anthropic disagrees that a narrow potential jailbreak should lead to the recall of a commercial model used by hundreds of millions of people. It warned that applying this standard across the AI industry could effectively halt new frontier model deployments. Anthropic concluded by mentioning that it is working to restore access to Fable 5 and Mythos 5 as soon as possible and plans to share more details within the next 24 hours.
    • Brave Browser 1.91.172 is out.
    • Any Video Converter Free 9.2.3 by Razvan Serea Any Video Converter is an All-in-One video converting tool with an easy-to-use graphical interface, fast converting speed and excellent video quality. Any Video Converter supports all popular video formats and converts your videos to different video formats including MP4, MOV, MKV, M2TS, M4V, MPEG, AVI, WMV, ASF, OGV, WEBM, and more. It supports converting videos to customized percent (50%, 100%, 200%, and more) or resolution (480p, 720p, 1080p, 4K, and more); It supports encoding videos into x264, x265, h263p, xvid, mpeg, wmv, and more. Any Video Converter Free key features: Compatible with Windows 11/10/8.1/8/7 (32-64bit) User interface are available in 14 languages Convert all kinds of video formats including high-definition videos Extract audio from any videos and save as MP3/WMA for your mp3 player Take snapshot from any videos and build your own picture collection Support high-definition for both input and output Batch add videos from hard drive and batch convert Customize output parameters completely as you like Manage your output videos files by group or output profile Merge several video files into a single and long one Clip a video into segments Free Audio Filter: Adjust audio volume and add audio effects Crop frame size to remove black bars and retain what you want only Adjust the brightness, contrast, saturation Rotate or flip or add noise/sharpen effects Produce output video with subtitles of your own dialogue and much, much more... Any Video Converter Free 9.2.3 changelog: Fixed video download engine auto-update failures. Added custom speed control support in the speed change tool. Added support for downloading YouTube AI-generated subtitles. Added support for preserving original audio stream in the format convert tool (e.g., Dolby Atmos, DTS:X). Fixed other bugs and improved overall performance. Download: Any Video Converter Free 9.2.3 | 7.6 MB (Freeware) View: Any Video Converter Free Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
    • Rookie
      Rimplesnort went up a rank
      Rookie
    • One Year In
      Markus94287 earned a badge
      One Year In
    • One Month Later
      Markus94287 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      503
    2. 2
      +Edouard
      176
    3. 3
      PsYcHoKiLLa
      147
    4. 4
      ATLien_0
      92
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!