|
Any program you launch from an elevated batch file should also be elevated. You can use Task Manager or Process Explorer[^] to check.
If it's not elevated, then there must be something else going on.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi Rick,
For some reason my application is behaving differently when I right click and say "Run as Administrator" and when I add that application either in the Batch File or even in the Windows Scheduler, in both cases I have set the application exe as always run as Administrator.
Means in first case I am running the Application by right click and Run as Administrator - in this case App works fine accesses all Files Folder and Database Objects.
But when I set the Application exe as always Run as Administrator and call that exe from the Batch File or Windows Scheduler, my app is not able to access all the objects, throwing error like File not found, even though file is there.
I am setting the Windows Scheduler properties as run with highest privileges so that it should run as administrator
and in case of batch file I am running the batch file by right clicking and saying as "Run as Administrator" - still my application is not running like that but in common way.
I too don't know why is it? Any help would be greatly helpful, thanks in advance.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
I have tried your method of converting a windows form to web form but now I have a bulky project which is to be converted into a web application. What should I do? Can I convert it directly or I am supposed to migrate its content one by one to the web application?
Please help.
|
|
|
|
|
Member 13087010 wrote: I have tried your method Who is this message supposed to be directed to?
|
|
|
|
|
|
Then please post your question in the forum at the end of the article, so as_prabahar can reply.
|
|
|
|
|
Considering the age of that article and the rating on it, I'd be surprised if you got a response.
You can only get away with what that article talks about IF AND ONLY IF your Forms application was written properly to begin with. Chances are really good that you're going to be rewriting the app and doing a ton of refactoring of the code to use it in a web app.
|
|
|
|
|
|
|
The two technologies are very different. You should rewrite it. Perhaps you have business logic classes that can be reused but I would not try any migration tools.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I'm building an online IDE for students. I want to create a directory for each student once he is registered .
Someone suggested that I use NFS (Network File System) for students directories and code files, but I couldn't find any tutorial that uses NFS for ASP.NET MVC 5 (or even ASP.NET).
Can anybody suggest some good resources that might help? And What are some good alternatives for my project purposes?
modified 14-Mar-17 14:55pm.
|
|
|
|
|
All cute and nice for Linux.
Member 12992094 wrote: Can anybody suggest some good resources that might help? The Ubuntu forum.
Member 12992094 wrote: And What are some good alternatives for my project purposes? Hard to tell, since you only claim to want directories for students. Do you want to give them a home-directory? Ask your SysAdmin. Do you want to provide FTP space? What kind of stuff will they be saving there, and how?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Unfortunately , I am using Windows 7.Even if I used Ubuntu, How am I supposed to use that from my ASP.NET MVC application? It looks like NFS is not supported in C# and .Net .
Quote: Hard to tell, since you only claim to want directories for students. Do you want to give them a home-directory? Ask your SysAdmin. Do you want to provide FTP space? What kind of stuff will they be saving there, and how?
Students directories will be similar to those directories that an IDE creates for you when you create a new project. In my case, students are allowed to have only one project. So the directory will look like:
Student's Name >>> Student Project >>> src (code files are stored here)
Files are created for the student once he clicks "New Class" , and he can delete them by clicking "Delete class". Students won't have a direct access to their directories, instead, the application will create a tree-view for their directories similar to those in Eclipse and other IDE's. They can only create, edit and delete classes. It'll also support compiling and running the codes by sending scripts to the server.
And yes , I want to provide FTP space.
|
|
|
|
|
Member 12992094 wrote: It looks like NFS is not supported in C# and .Net .
Precisely.
What you describe is basically editing a text online, and compiling and executing that. Shouldn't be too hard with MVC.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Do you know what does it need to compile and execute a code??
|
|
|
|
|
|
|
You're welcome
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Yeah a big thank you from Sweden as well!
__________________________________________________________________________________________________________
Spelsidorna where [DER] and [BSW] meet!
|
|
|
|
|
Hi,
I have a Console app which has to read files which are modified before only 12 hours or less than 12 hours, but when I am using the following Linq its Fetching me the files which are modified a 2 months back.
Linq is:
dynamic tempFiles = null;
<pre>
tempFiles = (from f in feedDir.GetFiles(strPattern, SearchOption.TopDirectoryOnly) select f)
.Where(x => x.LastWriteTime >= DateTime.Now.AddHours(-12));
</pre>
Please help me what can I do to get only the Files list which are modified 12 hrs or after 12 hrs before, like files which are modified just before, 1 minutes before etc up only 12 hours before but not older than that.
Thanks in advance, any help would very helpful - thanks in advance.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
See FileSystemInfo.LastWriteTime Property (System.IO)[^]:
Quote: Note This method may return an inaccurate value, because it uses native functions whose values may not be continuously updated by the operating system.
The value of the LastWriteTime property is pre-cached if the current instance of the FileSystemInfo object was returned from any of the following DirectoryInfo methods:
GetDirectories
GetFiles
GetFileSystemInfos
EnumerateDirectories
EnumerateFiles
EnumerateFileSystemInfos
To get the latest value, call the Refresh[^] method.
So you might get an old time stamp especially when the file has just been updated.
|
|
|
|
|
That code looks like it should work - although I'd be inclined to use the UTC timestamps instead, to avoid timezone issues.
DateTime cutoff = DateTime.UtcNow.AddHours(-12);
IEnumerable<FileInfo> tempFiles = feedDir
.EnumerateFiles(strPattern, SearchOption.TopDirectoryOnly)
.Where(f => f.LastWriteTimeUtc >= cutoff);
Can you find an example of an old file being returned from this query, and check the "date modified" column in Windows Explorer? That column should return the same value as the LastWriteTime property.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yes works perfect
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
Hi,
I have a C# application which is sending automatic Emails with some essential information, the body of the Email has to be in tabular format.
Can anybody please help me how can I write an Email which would be in tabular format? A code snippet, a link or even a suggestion would be very helpful for me.
Thanks in advance.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
You've been around here long enough to know that you start with Google. I can't believe that you didn't find anything at all to give you a starting point for your own code. All you have to do is Google for "sending HTML email".
|
|
|
|