Click here to Skip to main content
15,914,327 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: FTP command "NLST" gives me "?" instead of "æ", "ø" or "å" Pin
thomasa7-Jan-08 5:17
thomasa7-Jan-08 5:17 
Generalcacheprofile doesn't work in control Pin
xcraft7-Jan-08 4:24
professionalxcraft7-Jan-08 4:24 
GeneralASP.Net and Sharepoint Pin
Nathan Gloyn7-Jan-08 3:38
Nathan Gloyn7-Jan-08 3:38 
GeneralDuplicate ID problem Pin
Abhijit Jana7-Jan-08 2:28
professionalAbhijit Jana7-Jan-08 2:28 
GeneralRe: Duplicate ID problem Pin
Michael Sync7-Jan-08 3:47
Michael Sync7-Jan-08 3:47 
GeneralRe: Duplicate ID problem Pin
arivu7-Jan-08 18:00
arivu7-Jan-08 18:00 
Generalcount the no of files in folder Pin
Mogaambo7-Jan-08 2:22
Mogaambo7-Jan-08 2:22 
GeneralRe: count the no of files in folder Pin
Sathesh Sakthivel7-Jan-08 2:36
Sathesh Sakthivel7-Jan-08 2:36 
Try with this code:

Dim objFSO <br />
Set objFSO = Server.CreateObject("Scripting.filesystemObject") <br />
'Get the folder object associated with the directory <br />
Dim objfolder <br />
Set objfolder = objFSO.Getfolder("C:\inetPub\wwwroot\folder") <br />
<br />
'Loop through the files collection <br />
Dim objFile, filecount <br />
filecount = 0 <br />
For Each objFile in objfolder.files <br />
if lcase(right(objFile.Name, 4)) = ".jpg" then <br />
filecount = filecount + 1 <br />
end if <br />
Next <br />
<br />
'Clean up! <br />
Set objfolder = nothing <br />
Set objFile = nothing <br />
Set objFSO = nothing <br />
<br />


This will count all JPGs, you can take out the if statement if you want to count all files, or adjust it as necessary,

SSK.

Anyone who says sunshine brings happiness has never danced in the rain.

GeneralRe: count the no of files in folder Pin
Mogaambo7-Jan-08 3:12
Mogaambo7-Jan-08 3:12 
GeneralIntegrating ASP.NET 2.0 with ASP.NET 1.0 Pin
Vsree7-Jan-08 2:16
Vsree7-Jan-08 2:16 
GeneralRe: Integrating ASP.NET 2.0 with ASP.NET 1.0 Pin
N a v a n e e t h7-Jan-08 2:44
N a v a n e e t h7-Jan-08 2:44 
GeneralRe: Integrating ASP.NET 2.0 with ASP.NET 1.0 Pin
Vsree7-Jan-08 18:46
Vsree7-Jan-08 18:46 
GeneralRe: Integrating ASP.NET 2.0 with ASP.NET 1.0 Pin
Michael Sync7-Jan-08 19:30
Michael Sync7-Jan-08 19:30 
GeneralRe: Integrating ASP.NET 2.0 with ASP.NET 1.0 Pin
N a v a n e e t h7-Jan-08 2:45
N a v a n e e t h7-Jan-08 2:45 
GeneralRe: Integrating ASP.NET 2.0 with ASP.NET 1.0 Pin
Michael Sync7-Jan-08 3:50
Michael Sync7-Jan-08 3:50 
GeneralRe: Integrating ASP.NET 2.0 with ASP.NET 1.0 Pin
N a v a n e e t h7-Jan-08 6:48
N a v a n e e t h7-Jan-08 6:48 
GeneralRe: Integrating ASP.NET 2.0 with ASP.NET 1.0 Pin
Michael Sync7-Jan-08 7:01
Michael Sync7-Jan-08 7:01 
GeneralRe: Integrating ASP.NET 2.0 with ASP.NET 1.0 Pin
N a v a n e e t h7-Jan-08 18:00
N a v a n e e t h7-Jan-08 18:00 
QuestionDecrypting a Hash value generated using sha1 algorithm Pin
karunakar pal7-Jan-08 1:39
karunakar pal7-Jan-08 1:39 
GeneralRe: Decrypting a Hash value generated using sha1 algorithm Pin
Rocky#7-Jan-08 1:51
Rocky#7-Jan-08 1:51 
GeneralRe: Decrypting a Hash value generated using sha1 algorithm Pin
N a v a n e e t h7-Jan-08 2:36
N a v a n e e t h7-Jan-08 2:36 
GeneralAnyway to add a keyboard shortcut to publish command? [visual studio 2005] Pin
jimboo87-Jan-08 1:10
jimboo87-Jan-08 1:10 
GeneralRe: Anyway to add a keyboard shortcut to publish command? [visual studio 2005] Pin
Declan Bright7-Jan-08 1:30
Declan Bright7-Jan-08 1:30 
GeneralProblem in using Eval in a GridView to show Date Pin
Rocky#7-Jan-08 1:03
Rocky#7-Jan-08 1:03 
GeneralRe: Problem in using Eval in a GridView to show Date Pin
Declan Bright7-Jan-08 1:17
Declan Bright7-Jan-08 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.