|
Thanks a lot. I wrote a batch file and now it works fine.
|
|
|
|
|
You can also do this on VBScript.
---------------------------
Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute.
Regards,
Hesbon Ongira
Nairobi, Kenya.
|
|
|
|
|
Thanks a lot for you help. I implemented it using a batch file with netsh commands.
But it would be great if you can just tell me how to implemented using VBScript. I am just a little curious to know.
|
|
|
|
|
i have created multiple filenames for various clients.now i want to unlink them.how do i do it??the program is running on the server
prashant jain malviya national institute of technology
|
|
|
|
|
Overview
A Multi-version Timestamp Ordering Simulator (MTOS) is a program that takes in a schedule, applies on it Multi-version Timestamp Ordering, then outputs the names of the transactions that are going to be aborted if this schedule is implemented in a real system using Multi-version Timestamp Ordering. The following is a detailed description of the program.
Input
The input to MTOS should be a schedule of operations. The schedule is saved in a text file (.txt). And the file name is input to MTOS. Each line in the file is in the following format:
Operation TransactionNum [DataItemNum]
Operation is the operation to be performed. It is one of the following:
• begin indicates the beginning of a transaction.
• read indicates a read operation on a data item by a transaction.
• write indicates a write operation on a data item by a transaction.
• Commit indicates an end of a transaction.
TransactionNum is the number of the transaction performing the operation. It is a non-negative integer.
DataItemNum is the number of the data item the operation is performed on. It is a non-negative integer.
Sample Input Lines
begin 4 means that T4 has started.
read 8 5 means that T8 is reading X5.
write 20 3 means that T20 is writing X3.
Sample Input File à input1.txt
begin 1
read 1 3
write 1 3
begin 2
read 2 4
begin 3
read 3 6
commit 3
read 2 3
write 2 3
read 1 4
write 1 4
commit 1
commit 2
Note: All input is in lowercase.
Output
MTOS produces output in a text file residing in the same directory as MTOS. The file should have the following name “result_X.txt”. X is the input file name (without the extension) for which this output is produced. The system produces exactly 1 line of output transaction aborted after applying multi-version:
TX has aborted.
TY has aborted.
Transaction X aborted THEN transaction Y aborted. Order is important.
Sample Output File for input1.txt à output file name: result_input1.txt
T1 has aborted.
Implementation Notes
• After the input file is read, Multiversion timestamp ordering is applied by building an in-memory table to hold the read and write timestamps of the different versions of each data item.
• Keep track of previous changes to each field in case a transaction is aborted and you need to go back to the previous value in the schedule.
• Use a counter to assign timestamps to transactions.
• Do not worry about cascading rollbacks.
Assignment
1- Implement MTOS described above using any programming language.
a. Name your program MTOS.
b. Your program should take from the command line one argument which is the input file name.
c. The output of your program is a text file named inputFileName_result.txt. Where inputFileName is the name of the input file without the extension.
d. You need to follow the input\output format very carefully. Grading will be done automatically so any difference in formatting may lead to errors and therefore you getting a zero.
Both will help him thanks a lot
|
|
|
|
|
Do I take it that you are wanting somebody to do your homework for you?
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Richard A. Abbott wrote: Do I take it that you are wanting somebody to do your homework for you?
Naw. He was just wondering aloud what force caused the apple to fall from the tree...
“If we are all in agreement on the decision - then I propose we postpone further discussion of this matter until our next meeting to give ourselves time to develop disagreement and perhaps gain some understanding of what the decision is all about.”-Alfred P. Sloan
|
|
|
|
|
modified 1-Aug-19 21:02pm.
|
|
|
|
|
I you some work on the programme .. Reached a certain point I could not complete help me pleas
#include < iostream><br />
#include < fstream><br />
<br />
using namespace std;<br />
<br />
int timeStamp[];<br />
<br />
int count = 0;<br />
int variable [][];<br />
char ch;<br />
int num , I;<br />
<br />
int main ()<br />
{<br />
<br />
char fileName[80];<br />
<br />
cout<<"Enter the file name: \n";<br />
<br />
cin.get(fileName, 79);<br />
<br />
fstream out (fileName , ios::in | ios::out | ios::binary);<br />
<br />
if(!out){<br />
<br />
cout<<"cannot open file.\n";<br />
<br />
return 1;<br />
<br />
}<br />
<br />
<br />
<br />
<br />
while(out!="\n")<br />
{<br />
out.get(ch)<br />
if(ch=="B" | ch == "b")<br />
{ <br />
out.seekg( 7 , ios::beg);<br />
out.get(x);<br />
x= atoi(x);<br />
count++;<br />
timeStamp[x]=count;<br />
<br />
}
<br />
if(ch == "R" | ch == "r")<br />
{<br />
out.seekg( 6 , ios::beg);<br />
out.get(t);<br />
t= atoi(t);<br />
num=timeStamp[t];<br />
<br />
out.seekg( 8 , ios::beg);<br />
out.get(v);<br />
v= atoi(v);<br />
<br />
I=1;<br />
<br />
while(variable[v][i]<=num)<br />
I=I+2;<br />
<br />
I=I-2;<br />
variable[v][i]=num;<br />
<br />
<br />
}
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
out.close();<br />
<br />
return 0;<br />
<br />
<br />
}
|
|
|
|
|
No no no, you got it all wrong. This is what you want to do...
private void btnSummary_Click(object sender, EventArgs e)<br />
{<br />
rtbSummaryInfo.Text = "";<br />
if (cboDays.Text == "One")<br />
{<br />
rtbSummaryInfo.Text = "Your date: "+ dateTimePicker1.Text;<br />
}<br />
else if (cboDays.Text == "Two")<br />
{<br />
rtbSummaryInfo.Text = "Your dates: "+ dateTimePicker1.Text + " and "+ dateTimePicker2.Text;<br />
}<br />
else if (cboDays.Text == "Three")<br />
{<br />
rtbSummaryInfo.Text = "You have chosen "+ dateTimePicker1.Text +","+dateTimePicker2.Text+","+dateTimePicker3.Text;<br />
}<br />
else if (cboDays.Text == "Four")<br />
{<br />
rtbSummaryInfo.Text = "test four";<br />
}<br />
else if (cboDays.Text=="Five")<br />
{<br />
rtbSummaryInfo.Text = "test five";<br />
}<br />
else if (cboDays.Text == "Zero")<br />
{<br />
MessageBox.Show("You need to select a minimum of one rental day", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Warning);<br />
}<br />
}
“If we are all in agreement on the decision - then I propose we postpone further discussion of this matter until our next meeting to give ourselves time to develop disagreement and perhaps gain some understanding of what the decision is all about.”-Alfred P. Sloan
|
|
|
|
|
I'm not sure if this would be the right forum (though I would think so). But I just got a new computer. It's MUCH, MUCH better than my old one. LoL. I'd like to keep my old harddrive along with the new one. The new one is WinXP Pro SP2, and the old one is Win2K Pro SP4. I have my old harddrive plugged in using 'Cable Select', and it's picked up as the primary slave.
If I change the boot order in BIOS, and attempt to boot from my Win2K HDD, I get a blue screen saying "INACCESSIBLE_BOOT_DEVICE" and a bunch of other text. I didn't figure it'd work. But I don't necessarily know why either.
Is there a way that I can boot from either HDD? If so, I will upgrade my Windows 2000 HDD to WinXP Pro SP2 as well. Most of my applications are installed on the Windows 2000 HDD, but I installed my VS .NET 2005 Pro to my new HDD. But I do quite a bit of music production also. I wanted to use my new HDD strictly for programming and music, and use my old one for misc. things. Is this possible?
Would it be an issue with the hardware? I'm using the same graphics card (swapped it out), but the motherboard, processor, audio card, etc., are not the same (of course =P).
If you need any clarification on my question just post it. Or IM me on Yahoo! (the_dadd_from_tn2005).
Thanks in advance,
Matt U.
|
|
|
|
|
Matt U. wrote: I get a blue screen saying "INACCESSIBLE_BOOT_DEVICE" and a bunch of other text
This typically means that either the new platform or the old (or both) requires a non-standard disk driver. When Windows boots, the initial boot loader has to be able to read the disk in protected mode (where it can't drop back to an add-in ROM) at a point where it only has the capability of reading the root directory, and when it hasn't yet loaded the registry. To do this, either the disk must be connected to a legacy hard disk controller or register compatible (such as on-board non-RAID IDE or SATA) or there must be a copy of the disk (controller) driver copied to ntbootdd.sys in the root of the boot partition.
Alternatively it may be as simple as the line in boot.ini referring to the old location of the drive, for example if it was the primary master in the old system but is now primary slave.
You can typically do a repair install of the OS to fix this. Boot from the install CD, hit F6 to select an additional drivers required, insert the driver floppy when prompted, then select to install or upgrade (not the first Repair option), then select the location of your old Windows installation and choose to reinstall over the top. This will cause setup to write a new ntbootdd.sys driver, if needed, or fix up the line in boot.ini if that's the problem. It'll also re-do all of the hardware detection so you shouldn't have any more problems with incorrect drivers.
See also How to perform an in-place upgrade of Windows 2000[^] in Microsoft's Knowledge Base.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
If I'm not mistaken, you can only boot a Windows partition from a master drive. Or at least, the boot sector must reside on the master drive; given that, booting multiple operating systems from multiple disks will be difficult, but dual booting from one master disk is easy.
Anyway, I think to answer your question, you need to change the jumper on the drive to "Master" to get the drive to boot properly, but just know that only that partition will boot, you will not be able to select the other operating system (whichever it may be).
If you want to dual boot both XP Pro and W2k, repartition your master drive the way you want (minimum of 2 partitions). Now install W2k FIRST onto the FIRST partition on the disk. Now install XP Pro onto the SECOND partition on the disk.
You can use the remaining portion of the first disk and all of the second disk for additional storage.
XP Pro will rewrite the boot sector of the disk and will recognize the W2k partition as bootable and will add it to the boot menu. The only thing you need to know now is that ALL post-BIOS and pre-Windows boot management is handled by the XP Pro installation.
|
|
|
|
|
Hi,
I write a, ATL Server Web server(ISAPI include in same DLL) i have theses files:
- VectWebSrv.disco
- VectWebSrv.dll
- VectWebSrv.htm
I test it on my Xp Pro it work fine, i made client with MFC and C# (Web Application (ASPX)), both applications can access it...
Now it try to install it on Win2K3 Web Server (et c'est le drame !).
Result:
I can see the page with url (IE is launch on server): VectWebSrv.htm.
But when i try to get WSDL XML file from VectWebSrv.dll using : http://localhost/VectWebSrv/VectWebSrv.dll?Handler=WSDL
=> On Xp : It work...
=> On Win2K3 : The page cannot be found ... HTTP Error 404 - File or directory not found...
Server Config from blank install on VMWARE.
1) I use a video from MS Lab to configure IIS and ASP.NET.
2) I create the same directory than in my XP for the web service and copy files...
3) With inetmgr.exe I add "Virtual directory" for my web service using same parameter than i my xp
- I use DefaultAppPool for protection.
4) I add user IIS_WPG to directory security (Read&Execute\List Folder Contents\Read)
Can anyone help me ?
...
|
|
|
|
|
When I open my Com got the message show as below
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\WINDOWS\System32\wbem\wmiprvse.exe
How could I fix it ?
Please advice
|
|
|
|
|
Hi All,
Is there a posibility to execute two instances of the explorer.exe in windows xp-sp2 ???
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
No. When you run explorer.exe while one instance is already running, the newly created instance would signal the already running instance of the executable to create an explorer window and then the new instance would quit on its own.
|
|
|
|
|
You can only run one instance of it.
|
|
|
|
|
HI
It runs Under Exclusive Rights So it is not possible to do.
Believe Yourself™ :->™
|
|
|
|
|
Hi,
I have windows xp-sp2.I have a on-board Ethernet card.my system is not connected to the network.
I shared a folder in My machine and tried to access the folder by typing the systemname in run like \\node1\share ,so that i get the share open. but it displayed a message the machine in offline or the network down.
what can i do to access the share without network. just like local host 127.0.0.1
Thanks in advance.
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
I'm sure I don't understand your question. I have one of my own though: Why do you need a share on your compter if you are not on a network?
“If we are all in agreement on the decision - then I propose we postpone further discussion of this matter until our next meeting to give ourselves time to develop disagreement and perhaps gain some understanding of what the decision is all about.”-Alfred P. Sloan
|
|
|
|
|
Hi, in my lab i have windows 2000 domain controler with some user name in AD. I also apply the permission to some file on that DC. Now I have install win 2003 DC on the new pc for testing and i want to transfer all of user account from the old DC (win 2000). Could anyone please let me know how could i do that because i have a problem when i try to copy the data and want all the permission on win 2000 is correctly apply on win 2003 DC machine?
Thank in advance
|
|
|
|
|
Roath Kanel wrote: Now I have install win 2003 DC on the new pc for testing and i want to transfer all of user account from the old DC (win 2000).
If you create the new domain controller in the same domain as the old one, as an additional domain controller, you automatically get a replicated copy of the user accounts. I would strongly recommend doing it this way. Otherwise you will have to rejoin all of your workstations to the new domain as well, and all users' local profiles will then become disconnected from their accounts too.
In the main, Active Directory is a multi-master system - the DCs are peers and updates can be made on any DC. If you later plan to decommission the old DC there are a few roles, which only run on a single DC (for example, schema master and NT4 PDC-compatibility), which you will have to transfer. This can be done (IIRC) in Active Directory Domains and Trusts. You should also make your new DC a Global Catalog server.
The regular Windows Explorer copy process does not copy the security on files, if I recall correctly. When transferring to our new DC recently, we initially used xcopy and when we had some trouble with that, causing the 70GB copy to stop, used Robocopy from the Windows Server 2003 Resource Kit Tools[^], which supports detecting unchanged files and restarting copy operations. Those tools support copying the existing Access Control Lists (ACLs). For xcopy use the /O switch, while for Robocopy use /SEC.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
|
Hi...
My advice is to back up your important data before trying anything. I've lost all data several times trying stuff like this... Can you connect the drive to a properly functioning PC and copy everything there?
What did you use to change the drive letter to J? Did you delete the C partition?
(I'm not really an expert on this, so maybe better to wait for more replies...)
|
|
|
|