Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Get FileName without Extension?

$
0
0




Using windows vbscript, how can I get the filename without extension?

Here's my code

set wshell = createobject("WScript.Shell")
CurPath = WShell.Currentdirectory
Set fso = CreateObject("Scripting.FileSystemObject")
Set objFolder = fso.GetFolder(CurPath)  
Set files = objFolder.Files  
For each fileIdx In files  
	Wscript.Echo fileIdx.Name
Next	




I would like to print the file name without the extension. How can I do that?

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>