15,909,242 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sisir Behera (Top 8 by date)
Sisir Behera
4-Jan-16 8:33am
View
Hi All,
Below is the code which i am trying to search all the files from the shared path and also i need to download the files
<pre lang="C#">protected void Button1_Click(object sender, System.EventArgs e)
{
string search = TextBox1.Text;
string[] files = Directory.GetFiles(@"\\sdcntprdeafil01\EAIShare\PDCU\OutboundArchive\StockCR_Archive", "*.*", SearchOption.AllDirectories);
int Flag = 0;
string dir = @"\\sdcntprdeafil01\EAIShare\PDCU\OutboundArchive\StockCR_Archive";
string[] files1;
int numFiles;
files1 = Directory.GetFiles(dir);
numFiles = files.Length;
Response.WriteFile("Files searched : " + numFiles + "<br>");
for (int i = 0; i < numFiles; i++)
{
string file = files[i].ToString();
int file1 = file.IndexOf(search, StringComparison.CurrentCultureIgnoreCase);
if (file1 != -1)
{
Response.Write("<br>" + file);
Flag = 1;
}
}
if (Flag == 0)
{
Response.Write("No Matches Found");
}
}
}</pre>
Please help.
Sisir Behera
2-Jan-16 5:55am
View
File name basically starts with SRCNV series followed by store number.
For Example :
SRCNV868_3284_16122015160100_1.xml
SRCNV868 - File name
3284 - Store Number
So baiscally if you give a search with SRCNV*_Storenumber* , it will give list of all the SRCNV files for that date on the folder present
Sisir Behera
2-Jan-16 4:07am
View
Web application
Sisir Behera
13-May-13 3:10am
View
Hi Sandeep, Currently i am able to read the task scheduler as below:
static private void Usage()
{
ProcessStartInfo psi = new ProcessStartInfo("SCHTASKS", "/QUERY /fo table"); psi.RedirectStandardOutput = true;
psi.UseShellExecute = false;
Process p = Process.Start(psi);
p.OutputDataReceived += new DataReceivedEventHandler(p_OutputDataReceived); p.BeginOutputReadLine();
}
static void p_OutputDataReceived(object sender, DataReceivedEventArgs e)
{
string strOutput = "";
strOutput += e.Data ;
}
But here problem seems Status is blank for all the scheduled jobs.So not sure how to display it as success,running,failed or going to run.Believe need to set a timer and as per the scheduled time it will check whether job has ran or not.If it didnt ran or failed it should fire a mail stating the status. This is something i am stucked here.Any idea on this please. Many Thanks, Sisir
Sisir Behera
12-May-13 11:33am
View
Hi,
I do have requirement of two parts :
1.Get all scheduled jobs in windows task scheduler and check the status of them.
2.Send alert email based on the job status,
Any suggestion on this please.
Many Thanks,
Sisir
Sisir Behera
9-May-13 3:12am
View
Any more views to my above question.I need one console based windows application which will check all the scheduled job status and based on the status it should fire email.
Would appreciate if anyone move forward to put any kind of suggestion.
Sisir Behera
6-May-13 10:38am
View
Hi Prasad,
Did tried by adding "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe" -manifest "$(ProjectDir)$(TargetName).exe.manifest" -updateresource:"$(TargetDir)$(TargetName).exe;#1"
in proj solution.But no result.
Any other thoughts please.
Sisir Behera
6-May-13 7:15am
View
Hi Prasad,
Thanks for your reply.I did tried the link you have suggested.I am getting one error while running the application:
Error 1 The command "mt.exe -manifest "C:\Documents and Settings\Rnt\My Documents\Visual Studio 2010\Projects\TaskScheduler Project\TestApp\app.manifest" -outputresource:"C:\Documents and Settings\Rnt\My Documents\Visual Studio 2010\Projects\TaskScheduler Project\TestApp\bin\Debug\TestApp.exe;#1"
" exited with code 9009. TestApp
Could you plz suggest.Did tried to google but nothing helpful.
Many Thanks,
Sisir
Show More