Question about cmd.exe /k
I can write the code below to start cmd.exe to stay and not end:
Process p=Runtime.getRuntime().exec("cmd.exe /K ver"); // for example.
InputStream in=p.getInputStream();
InputStream err=p.getErrorStream();Now how do I send another command to this process p and capture its output?
OutputStream o=p.getOutputStream();Can someone help? I just want to run one copy of cmd.exe.
google for the many discussions about this.
Similar Messages
-
Question about pushprinterconnections.exe
We have some library computers that lose their printer connections from time to time. These Dell OptiPlex 9010's log into a wireless network. Sometimes I run gpupdate /force and that will bring back the printers and sometimes it does not work and simple
reboot will work. My question what does the pushprinterconnections.exe do?
Sometimes we've had to just reimage the workstations in the library through SCCM 2012because the printers don't show up at all. Is there a Microsoft utility we can run that will restore the printers other than running gpupdate?Hello Mr Mike2,
Please explain a bit about the following questions for better analyzation:
1. I wonder if those few computers have this issue?
2. Please check if you can ping the IP address of the printer when the gpupdate /force not work.
We need to check the network connection from the computers to the printer.
Additionally, please take a look at the following article about troubleshooting.
http://windows.microsoft.com/en-us/windows/printer-problems-in-windows-help#fix-printer-problems=windows-7&v1h=win8tab1&v2h=win7tab1&v3h=winvistatab1&v4h=winxptab1
Run the printer troubleshooter.
Update the driver.
To receive better support about printer, it is recommended to seek help from the print forum.
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverprint
Best regards,
Fangzhou CHEN
Fangzhou CHEN
TechNet Community Support -
Question about wlconfig.exe...
Hi all,
When I enter wlconfig.exe in command prompt, I return the the following
result:
WebLogic startup settings are presently:
CLASSPATH Prefix d:\weblogic\myserver\serverclasses;
CLASSPATH
d:\weblogic\myserver\serverclasses;d:\weblogic\lib\weblogic510sp5boot.jar;d:
\weblogic\lib\weblogicaux.jar;d:\jdk1.2.2\lib\tools.jar;d:\jdk1.2.2\jre\lib\
rt.jar;d:\jdk1.2.2\jre\lib\i18n.jar;d:\weblogic\license;d:\weblogic\classes\
boot;
d:\weblogic\classes;d:\weblogic\lib\weblogicaux.jar;d:\weblogic\eval\cloudsc
ape\lib\cloudscape.jar
JAVA_HOME d:\jdk1.2.2
WEBLOGIC_LICENSEDIR d:\weblogic\license
WEBLOGIC_HOME d:\weblogic
system properties:
java.security.manager
java.security.policy==d:\weblogic\weblogic.policy
weblogic.system.home=d:\weblogic
java.compiler=symcjit
weblogic.class.path=d:\weblogic\license;d:\weblogic\classes;d:\weblogic\myse
rver\serverclasses;d:\weblogic\lib\weblogicaux.jar
INITIAL_HEAP 64 MB
MAX_HEAP 64 MB
SERVERCLASSPATH
d:\weblogic\myserver\serverclasses;d:\weblogic\lib\weblogic510sp5boot.jar;d:
\weblogic\lib\weblogicaux.jar;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\jre\lib
\i18n.jar;d:\weblogic\classes\boot;d:\weblogic\eval\cloudscape\lib\cloudscap
e.jar
My problem is how can I change the SERVERCLASSPATH? I can't see any
options in 'wlconfig -help'. Also, I can always change the CLASSPATH Prefix,
but how about the CLASSPATH (with wlconfig.exe)??
Moreover, I can only see some of the above entries in my registry such
as JAVA_HOME, system properties...., but how about the other properties
(e.g. SERVERCLASSPATH), where does it save??
Thanx!
filesdirBut as u can see in my output of running 'wlconfig.exe' (posted on my
last message), there a system property called 'weblogic.class.path',
however, there also exist another entry (not system property) called
SERVERCLASSPATH. What the difference between them (it seems that they have
different values)??
After I entered wlconfig -Dweblogic.class.path=<mypath>, i can only
change the system property (weblogic.class.path), but the entry
SERVERCLASSPATH remains unchanged...
Thanx!
filesdir
Jesse E Tilly <[email protected]> wrote in message
news:[email protected]...
[email protected] (filesdir) wrote in <[email protected]>:
Hi all,
When I enter wlconfig.exe in command prompt, I return the the
following
result:
WebLogic startup settings are presently:
CLASSPATH Prefix d:\weblogic\myserver\serverclasses;
CLASSPATH
d:\weblogic\myserver\serverclasses;d:\weblogic\lib\weblogic510sp5boot.jar
;d:
\weblogic\lib\weblogicaux.jar;d:\jdk1.2.2\lib\tools.jar;d:\jdk1.2.2\jre\l
ib\
rt.jar;d:\jdk1.2.2\jre\lib\i18n.jar;d:\weblogic\license;d:\weblogic\class
es\ boot;
d:\weblogic\classes;d:\weblogic\lib\weblogicaux.jar;d:\weblogic\eval\clou
dsc ape\lib\cloudscape.jar
JAVA_HOME d:\jdk1.2.2
WEBLOGIC_LICENSEDIR d:\weblogic\license
WEBLOGIC_HOME d:\weblogic
system properties:
java.security.manager
java.security.policy==d:\weblogic\weblogic.policy
weblogic.system.home=d:\weblogic
java.compiler=symcjit
weblogic.class.path=d:\weblogic\license;d:\weblogic\classes;d:\weblogic\m
yse rver\serverclasses;d:\weblogic\lib\weblogicaux.jar
INITIAL_HEAP 64 MB
MAX_HEAP 64 MB
SERVERCLASSPATH
d:\weblogic\myserver\serverclasses;d:\weblogic\lib\weblogic510sp5boot.jar
;d:
\weblogic\lib\weblogicaux.jar;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\jre\
lib
\i18n.jar;d:\weblogic\classes\boot;d:\weblogic\eval\cloudscape\lib\clouds
cap e.jar
My problem is how can I change the SERVERCLASSPATH? I can't see any
options in 'wlconfig -help'. Also, I can always change the CLASSPATH
Prefix, but how about the CLASSPATH (with wlconfig.exe)??
Moreover, I can only see some of the above entries in my registry
such
as JAVA_HOME, system properties...., but how about the other properties
(e.g. SERVERCLASSPATH), where does it save??
Thanx!
filesdir
SERVERCLASSPATH == weblogic.class.path
wlconfig -Dweblogic.class.path=<path>
should do the trick.
As for classpath, I thought wlconfig -classpath changed the whole registry
entry. Really doesn't matter that much, you only need to change theprefix
anyway. If you're doing something that requires the whole thing to be
changed, you may need to reconsider...that's a big change.
Finally, SYSTEM_PROPERTIES holds everything else. It's just being parsed
and displayed a little more "human readable".
Jesse -
How to create a activex control to execute cmd.exe with parameters?
Hi,
Is there any way to execute a cmd.exe on client side using activex.
currently i am using vs-2013
Please help i have no idea about activex control.
PawanNo, there is certainly no server side setting that will allow you to do this. Please refer to the following links for more information:
http://stackoverflow.com/questions/1791511/run-exe-from-client-side
http://stackoverflow.com/questions/5787200/how-to-open-command-prompt-from-my-application-client-side
http://p2p.wrox.com/javascript-how/24362-how-call-shell-cmd-open-exe-clientside.html
Please remember to mark helpful posts as answer and/or helpful. -
What return values do the cmd.exe commands return?
I have only begun to use PowerShell which I find way to complex at this time so for me the cmd.exe batch file does much of what I need, but I tried to find a list of the errorlevels returned by each of the commands but I couldn't find it. I found descriptions
of the command here:
http://technet.microsoft.com/en-us/library/cc772390(v=ws.10).aspx but they don't give return values.
In particular I was looking for the return value of the find command. I assumed 0 meant found, and 1 meant not-found, but nothing told me that. It could be that 0 only meant the find did not return an error, irrelevant to the finding something or not, when
1 might mean find exited prematurely (such as when using find in a protected directory). I since found that 0 means found and 1 means not found, but what if I needed to plan for how to handle exit codes other than those two?
I'm looking with respect to W7 Pro for return values for all the commands, not just find. I did a search in this forum and "on the net" before I submitted this question, but with more than 108K results just in this forum,
I found I didn't have the time to look through them all. "On the net" gave me some results for specific commands, but not all of them.
So, can someone point me to a list of cmd.exe command return codes for W7?Hi,
Some discussion about return value:
Windows PowerShell Exit Codes
http://blogs.msdn.com/b/powershell/archive/2006/10/14/windows-powershell-exit-codes.aspx
As you can see, it indeed depends who set it.
Alex Zhao
TechNet Community Support -
Hi every body,
I have a little question about the NT1 smart tags of sony.
I installed other app from google play to NFC tags in my phone.
I installed it, because the smart tag app of sony, don't have the action to turn on or turn off the GPS by NFC tag.
When I used with other app, and I written on the blue smart tag, I mark to became the blue smart tag to read only.
So, now I can't to write on him, and the phone is not recognazied the blue smart tag ( all other smarts tags is OK, because I didn't used them ).
When I scan the blue smart tag, the phone show a message: "unknown type tag".
Am I can cancelled it and became it back? that's mean that the phone is recognaized it and I can to write on it?
Or, is it one way, and I can't used with the blue smart tag again?
Thank you.you can do a factory reset or repair your phone with SUS
Update Service (SUS)
http://www.sonymobile.com/gb/tools/update-service/
http://www-support-downloads.sonymobile.com/Software%20Downloads/Update_Service_Setup-2.11.12.5.exe
Alternatives on How to backup Xperias
http://talk.sonymobile.com/thread/36355
Don't forget to mark the Correct Answers & Helpful Answers
"I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994) -
Windows 32 cmd exe. on startup
On start up, I get a window that says C: Windows 32 Command exe. that flashes just for a second. I've checked other forums, and they said to go to my start up menu in the Task Manager and uncheck it if it's there. I found it in the Google Chrome folder and unchecked Google Chrome. Didn't do anything.
Every forum I've seen so far just talks about Windows XP or Windows 7. I'm on 8.1.
I've run a virus scan with Avast and didn't find anything, I've also run System Mechanic. Also nothing. All my updates are up to date as far as I can tell.
It's not terribly annoying, but it just started up out of the blue and if I can get rid of it, I'd like to.
Any ideas?
Thanks in advance.Hello @Boo_Radley,
I have read your post on how a Windows 32 cmd.exe prompt appears when you first boot up your desktop computer, and I would be happy to assist you in this matter!
Does this window appear if you boot your computer into Safe Mode? Is this a recent or a reoccurring issue? What does the full error message state as it appears on the screen?
In the meantime, I recommend following any missed steps in this document on Resolving and Preventing Viruses on Your Computer (Windows 8). This should help catch and prevent any additional malware threats contributing to the error message when Windows is loaded.
Please re-post with the results of your troubleshooting, as well as the requested information above. I look forward to your reply!
Regards
MechPilot
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping! -
Question about broker Switchover command
Hi guys
i have one question about switchover cmd . For example, i have 1 primary database called stdby3 and 2 standby databases that are called stdby1 and stdby2. When i performed switchover cmd to stdby2 standby database, why the old primary database stdby3 could not become new standby database after i performed a switchover; furthermore the new primary and standby databases are not opened after the switchover process is completed
output screen:
DGMGRL> show configuration;
Configuration
Name: stdby1
Enabled: YES
Protection Mode: MaxProtection
Databases:
stdby3 - Primary database
stdby1 - Physical standby database
stdby2 - Physical standby database
Fast-Start Failover: DISABLED
Current status for "stdby1":
SUCCESS
DGMGRL> SWITCHOVER TO stdby2
Performing switchover NOW, please wait...
Operation requires shutdown of instance "stdby3" on database "stdby3"
Shutting down instance "stdby3"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires shutdown of instance "stdby2" on database "stdby2"
Shutting down instance "stdby2"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "stdby3" on database "stdby3"
Starting instance "stdby3"...
Unable to connect to database
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Failed.
You are no longer connected to ORACLE
Please connect again.
Unable to start instance "stdby3"
You must start instance "stdby3" manually
Operation requires startup of instance "stdby2" on database "stdby2"
You must start instance "stdby2" manually
Switchover succeeded, new primary is "stdby2"
DGMGRL> show configuration;
Error:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 130 Serial number: 45
DGMGRL> exit;
oracle@localhost ~$ dgmgrl
DGMGRL for Linux: Version 11.1.0.6.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect sys
Password:
Connected.
DGMGRL> show configuration;
Error:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
DGMGRL> connect sys@stdby3
Password:
Connected.
DGMGRL> show configuration;
Error:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
DGMGRL>
Edited by: user6981287 on Jan 6, 2010 9:27 AMthis is my configuration
DGMGRL> show configuration
Configuration
Name: matrix
Enabled: YES
Protection Mode: MaxPerformance
Databases:
stdby1 - Primary database
stdby2 - Physical standby database
stdby3 - Physical standby database
Fast-Start Failover: DISABLED
Current status for "matrix":
SUCCESS
--- this is my first successful switchover -----
DGMGRL> switchover to stdby2
Performing switchover NOW, please wait...
New primary database "stdby2" is opening...
Operation requires shutdown of instance "stdby1" on database "stdby1"
Shutting down instance "stdby1"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "stdby1" on database "stdby1"
Starting instance "stdby1"...
ORACLE instance started.
Database mounted.
Switchover succeeded, new primary is "stdby2"
-------------------this is my second switchover -------------
DGMGRL> switchover to stdby1
Performing switchover NOW, please wait...
New primary database "stdby1" is opening...
Operation requires shutdown of instance "stdby2" on database "stdby2"
Shutting down instance "stdby2"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "stdby2" on database "stdby2"
Starting instance "stdby2"...
Unable to connect to database
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Failed.
You are no longer connected to ORACLE
Please connect again.
Unable to start instance "stdby2"
You must start instance "stdby2" manually
Switchover succeeded, new primary is "stdby1"
DGMGRL>
Edited by: user6981287 on Jan 7, 2010 12:57 AM
Edited by: user6981287 on Jan 7, 2010 1:00 AM -
Questions about PDF exporting with InDe CS5.5
Hey all,
A couple questions about exporting to PDF from the latest version of InDe.
First, I have noticed that it seems to take a lot longer to get to a PDF. Any suggestions for how to speed up the process? It took 8 minutes or so to generate a low-res PDF (for print) of a 24pp document with a few placed images and vector graphics. Wow, that's a long time to wait, especially for a proof.
Second, the background task... if I get it going on making that 8-minute PDF and then work some more on the document, what exactly is in the PDF? Usually I save before making a PDF or printing. So, is the last version saved what will be in the PDF?
(As an aside, this ability to work on the doc while generating a PDF seems kind of weird. Generally one makes a PDF for proofing, or even for printing, when all the changes have been made and everything is "final". So, I see no benefit to being able to work on my document while it's making a PDF, as I'm probably finished making revisions for the time being. I have to say that I kind of like the progress bar you get when you make an interactive PDF, as you know you can't work on the document when that's on the screen... )
Thanks as always.First, I have noticed that it seems to take a lot longer to get to a PDF. Any suggestions for how to speed up the process? It took 8 minutes or so to generate a low-res PDF (for print) of a 24pp document with a few placed images and vector graphics. Wow, that's a long time to wait, especially for a proof.
Yes, this is abnormally long (and too long), something is wrong. What's the full version of InDesign you are running, as reported by holding down Cmd or Control and selecting About InDesign?
Second, the background task... if I get it going on making that 8-minute PDF and then work some more on the document, what exactly is in the PDF? Usually I save before making a PDF or printing. So, is the last version saved what will be in the PDF?
Saving is not related. InDesign makes a database snapshot of your document the moment you begin the PDF export, and makes the export relative to that snapshot, regardless of edits you continue to make during the export process, and regardless of saving. Of course saving first is a good idea, for several reasons, not the least of which it sounds like something's fairly seriously wrong with your document or your InDesign installation.
We recommend you trash your preferences and export your document to IDML and see if either of those things changes this 8-minute behavior...err, assuming you're running 7.5.2.318.
(As an aside, this ability to work on the doc while generating a PDF seems kind of weird. Generally one makes a PDF for proofing, or even for printing, when all the changes have been made and everything is "final". So, I see no benefit to being able to work on my document while it's making a PDF, as I'm probably finished making revisions for the time being. I have to say that I kind of like the progress bar you get when you make an interactive PDF, as you know you can't work on the document when that's on the screen... )
Yeah, I think the primary benefit is if you are likely to work on 2 or more files in parallel, so you can finish A and export A and then switch to B. If you'd like a dialog box to pop up when export is done, check out my exportPop script from this post: ANN: automatic dialog after background export (exportPop.jsx. -
Questions about Audigy 2 ZS connecti
Hello,
New to these forums, so bear with me. I'm considering purchasing an Audigy 2 ZS gamer card, and have some questions about the card and speaker setup. I've read the FAQ's in the forum, and they have been a big help, but I still have questions related specifically to my setup. Here's the system specs:
AMD Athlon 64 3000+
Asus K8V SE Deluxe
VisionTek Radeon X800 XT PE
Seagate 250 gig SATA HDD
gig Crucial ram
Antec P80 case
Antec TruePower 430 ps
Altec Lansing ADA885 digital speakers (awesome sound)
Altec Lansing headset (cheap but works for voice and gaming)
ADI AD980 onboard sound
Windows XP Home
. I currently am able to run both the speakers and headset at the same time by using the front panel audio outlets on the case (helps with the immersion in IL2 946). I would like to continue doing this(using front panel audio) with the new card. I've found several places that have an adapter cable for sale, http://www.x-tap.com/
http://www.performance-pcs.com/catal...oducts_id=2700
http://ask.americas.creative.com/SRVS/CGI-BIN/WEBCGI.EXE?New,Kb=ww_english_add,U={B8F6030-DA4F-D3-94F4-00500463020E},Company={CEAE26D-879-4C00-AC9F-03BC258F7B70},d=3025443648,VARSET=ws:http://us.creative.com,case=5764
The plug that I have has only 3 separators, not 4. Will this work with the Audigy 2? I don't have a link for this plug, unfortunately.
4. I had been considering purchasing? a set of USB headphones, but I've been told that when you plug them in, the sound is cut off for the speakers. If there was a workaround for this, I might consider getting them. Then I wouldn't have to use the front panel audio or the connections on the card.
5. I've heard of an issue with this particular set of speakers and the Audigy 2 card, particularly that the speakers were originally designed for a Dell system, and the wiring was phased differently than in other systems. Is this something to be concerned with, and if so, is there a workaround?
I like to research a particular product before I buy it, in order to make an informed decision and avoid problems if possible. Sometimes it works, sometimes it don't
Thanks in advance for the help.
Message Edited by mrj_455 on 03-05-2008 05:28 PMMessage Edited by mrj_455 on 03-05-2008 05:32 PMThe inputs are easy to find and select:?
Right-click the Mixer icon on the taskbar and select "Playback Devices".<
There should open a new Window with the options of "Speakers" and "SPDIF"<
With Speakers highlighted click the?"Properties" button on the lower?right corner<
Go to the 4th tab (I believe it is "volume" in english, "Pegel" in german)<
There you have your inputs!<
Unmute Line-In and set its volume according to your desires.<
Also remember that software designed for XP, that should control the Line-IN settings, (ie. Hauppauge WinTV or Dscaler) will be unable to do so in Vista, do to the architecture change. You can however enable "Compatibility Mode for Windows XP SP2" for these applications (right-click on their executable) and restore control of the inputs directly from the program. (You should however unmute it first as explained above). PS:? All Creative Software that came on the CD is incompatible to Vista. Only the included Audio Console should work as expected.Message Edited by alexs3d2 on 05-07-200707:3 PM -
Question about autodiscover in case of multiple bound namespace
Hi Experts,
I have a question about the autodiscover behaviour. Let's assume we have the below infrastructure:
SiteA :
MBX-Server-SiteA : Member of a DAG
CAS-Server-SiteA : outlook anywhere url = siteA.domain.com
SiteB :
MBX-Server-SiteB : Member of a DAG
CAS-Server-SiteB-1 : outlook anywhere url = siteB-1.domain.com
CAS-Server-SiteB-2: outlook anywhere url = siteB-2.domain.com
We have DB-1 and DB-2 that have copies in both MBX servers.
My question is how does exchange select the access URLs to return in the autodiscover process? I know that it depends on where the mailbox is hosted but can't find details about the process in the technet articles.
Thanks.There's quite a few details that are involved in the Autodiscover process. First of all - probably the most important thing is that there are 2 stages to the whole process.
In the first stage, the client is simply concerned with getting the address of a CAS server that will help it further. We'll keep things simple and assume your scenario where the client is located inside the network and is domain-joined. The details of the
LDAP query are detailed in
this link. (At the time I was investigating this I've actually went ahead and ran the queries using the ldp.exe client against the Configuration partition of the respective AD domain - it's worth seeing the actual responses.) An interesting trick here is
the 'keywords' attribute that's stamped on those SCP entries. The reason behind it is that you don't want a client located in a site to go half across the globe in order to connect to a CAS server, when there's one available in its own site. One simple way
to get the 'keywords' attribute stamped is through the Set-ClientAccessServer cmdlet, using the -AutodiscoverSiteScope parameter. In your example, you'd probably want to run it against the CAS server in Site A and specify the name of the corresponding AD site
('SiteA') and correspondingly against the 2 CAS servers in Site B (using 'SiteB'). Once the client has got the response to his query, it will attempt to select one server that's handling the site he's in (essentially it will filter the results based on 'keywords'
-contains <client-site>). Now that we got our endpoint we can go to stage 2.
In stage 2, the client will actually use EWS in order to query the Autodiscover service itself running on our target server. There are 2 possible interfaces of accessing the Autodiscover service: POX (Plain Old XML) and SOAP. POX will be targeting the ../Autodiscover.xml
URLS, while the SOAP one will be using ../Autodiscover.svc URLs. Details about this including some hardcoded parts are
here. What happens next is detailed in point 3, section 2.1 The Autodiscover Process
here. This last link is the key to the whole process:
"It provides a list of CAS that has AutodiscoverSiteScope information set for the
Associated AD site of the Database where the client Mailbox is located."
In other words, the CAS is smart enough to return the URLs belonging to a CAS server in the AD site where the client's mailbox' database is active.
My advice is to test this on your scenario. Tests can be done here first-hand: the Outlook's tray icon Test E-Mail AutoConfiguration can be used or alternatively - if you want to see the details in the communication - SoapUI
for the SOAP access method, for POX there's an extension called 'Postman for Chrome' that can be used. I've used all these in my tests back when I was fighting conflicting results from the articles around the web about Autodiscover.
That's a long way of saying we get the AutoD URL of a CAS server closest to the workstation, which then provides the configuration to use which are the the URLs closest to the mailbox :)
By all means look at the SOAP response, but Outlook will only use POX. Lync does SOAP along with other 3rd party apps.
Cheers,
Rhoderick
Microsoft Senior Exchange PFE
Blog:
http://blogs.technet.com/rmilne
Twitter: LinkedIn:
Facebook:
XING:
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. -
Hi, I'm a newbie in DFS and I have several questions about DFS that I hope somebody could answer me:
1. Introduction/theory/basic stuff:
I've found this webpage "How DFS Works" at https://technet.microsoft.com/en-us/library/cc782417%28v=ws.10%29.aspx. But looking at its date,
I'm pretty sure it was written for Windows Server 2003.
Is there any updated webpage for Windows Server 2008 or later?
2. My computers are in a domain/AD 2008 R2. I'm pretty sure one of the servers is DFS root server. Are we allowed to have more than one DFS root servers in a domain?
3. Is there a way (GUI or command line) to list out all DFS root servers?
4. I'm also reading a white paper on "Microsoft File Server Migration Toolkit" that can be downloaded at http://www.microsoft.com/en-us/download/details.aspx?id=17959.
In page 16 & 17 of that document, it's written that "DFS consolidation roots" can only be hosted in DFS root server running on one of the followings:
Windows Server 2003 Enterprise Edition SP2
Windows Server 2003 Datacenter Edition SP2
Windows Storage Server 2003 Enterprise Edition
Windows Server 2008 Datacenter Edition
Windows Storage Server 2008 Enterprise Edition
Like most people now in year 2015, I'm not going to use version 2003. That leaves me two choices. But I actually have a server "Windows Storage Server 2008 R2
Standard Edition" sold by Dell. Do you think it could work like "Windows Storage Server 2008
Enterprise Edition"? Otherwise, the only option for me would be to make a "Windows Server 2008 Datacenter Edition"?
Thanks in advanceHi,
1.Is there any updated webpage for Windows Server 2008 or later?
https://technet.microsoft.com/en-us/library/cc732863%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396
2. My computers are in a domain/AD 2008 R2. I'm pretty sure one of the servers is DFS root server. Are we allowed to have more than
one DFS root servers in a domain?
You could have more than one DFS root server in a domain.
3. Is there a way (GUI or command line) to list out all DFS root servers?
We could use the Dfsutil.exe tool to manage the DFS.
http://blogs.technet.com/b/filecab/archive/2008/06/26/dfs-management-command-line-tools-dfsutil-overview.aspx
4. Consolidation root just supports run on Windows server 2008 R2 but doesnt support Windows server 2008 R2 as a DFS root.
Regards.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Basic questions about programing for J9 VM
I need to create a java application to run on a Pocket PC 2003 OS and I'm limited to using IBM's Websphere J9 Virtual Machine. I'm new to using java in this capacity and therefore have lots of questions which I'm guessing are pretty basic. Despite my best efforts, I've found very little to help me online. Below are a couple questions I have that I'm hoping someone can help me with. Even better, if you know of any resources that could help me with these and other questions, I'd love to have them. Thanks in advance.
1. I'm using standard AWT for the GUI but I'm having problems getting frames, dialogs, etc., to come up in anything less then full screen. setSize() and resize() have no effect, even if I extend the frame and override the setMinimumSize, setPreferredSize, setMaximumSize methods. What do I need to do to get a child window to appear in something less than full screen?
2. I'd like to be able to add menu's to the buttom toolbar (with the keyboard) but have no idea how I would add something to it. Can someone point me in the right direction?
3. When my application gets an iconified event I go ahead and call a System.exit() to exit the application. This doesn't kill the java VM though, which continues to run in the background (taking up plenty of memory). If I run my application using the J9w.exe so that it runs without the console, then not only does the VM continue to run, but I have no way to stop it (the running program list can't see it). Since each time I run my application it starts a new VM, it only takes a couple of times before I'm out of memory and have to do a soft reset of the PDA to make things right. Can I kill the VM when I kill my application?
4. I learn best by looking at example code, but have been unable to find any code people are running on J9. I have the GolfScoreTracker installed and running on my PDA, but the jar file contains only the classes. Since it's supposed to be a demo, I had hoped that the source code would be included, is that hoping too much or is the source code available somewhere? In addition, if you know of any applications out there with available source code that are known to run well on a PocketPC J9 environment I'd appreciate the link.Hi there, I saw your questions, im currently developing a java pocket pc application as well and here's what i go so far:
AWT seem to be hard to use on pocket pc, instead i recommend that you use SWT, which is a technology developed by eclipse. It's already installed on the eclipse plugins, you just need to download the jar and dll files for the pocket pc. They are available at: http://www.eclipse.org/downloads/index.php
I assume that you already have the J9 working on your device. So you only need to copy the SWT.jar file and the swt-win32-3064.dll to the folder containing the .class files on your device.
Now, on your java IDE(im using eclipse) Add the SWT.jar library to your project which should be on C:/eclipse/plugins/org.eclipse.swt.win32_3.0.2/ws/win32/swt.jar or something like taht depending on your eclipse root.
Now you are ready to code some SWT, here is a sample program from Carolyn MacLeod, i modified a few things so it could run on the pocket pc but it's almost the same. Once you coded in eclipse run it, then copy the class file from your desktop to your device(There should be like 4 or 5 classes like sample.class, sample$1.class etc. copy all of them) where you put the jar and dll files(If program does not run you may try to rename the dll file for swt-win32-3050.dll instead of 3064.dll). Now after you have everything set up you need to create the lnk file in order to run the program. On your desktop create a new textfile and write the following on it:
255#"\Archivos de Programa\J9\PPRO10\bin\j9w.exe" "-jcl:PPRO10" "-cp" "\My
Documents\Java\swt.jar" ;\My Documents\Java" sample
Paths depend on your install, and the place where you put your classes and jar file. path for j9w is usually "\Program Files\J9\PPRO10\bin\j9w.exe", and the last word should be the classname.
Currently this form only displays an image on a canvas, click on the browse button and choose a pic and it will display on the canvas. Im trying to connect the form to an oracle database but no success yet on the device.
Hope it helps, if you have any questions about the code or something, and I know the answer, please feel free to ask.
See ya
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.events.*;
import org.eclipse.swt.graphics.*;
public class sample {
static Shell shell;
static Display display;
static Text dogName;
static Text textdb;
static Combo dogBreed;
static Canvas dogPhoto;
static Image dogImage;
static List categories;
static Text ownerName;
static Text ownerPhone;
static String[] FILTER_EXTS = {"*.jpg"};
public static void main(String[] args) {
display = new Display();
shell = new Shell(display, SWT.RESIZE | SWT.CLOSE);
Menu menu = new Menu(shell, SWT.BAR);
shell.setText("Dog ShowS Entry");
shell.setMenuBar(menu);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 3;
shell.setLayout(gridLayout);
new Label(shell, SWT.NONE).setText("Dog's NameS:");
dogName = new Text(shell, SWT.SINGLE | SWT.BORDER);
GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gridData.horizontalSpan = 2;
gridData.widthHint = 60;
dogName.setLayoutData(gridData);
new Label(shell, SWT.NONE).setText("Breed:");
dogBreed = new Combo(shell, SWT.NONE);
dogBreed.setItems(new String [] {"Collie", "Pitbull", "Poodle", "Scottie"});
dogBreed.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
Label label = new Label(shell, SWT.NONE);
label.setText("Categories");
label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
new Label(shell, SWT.NONE).setText("Photo:");
dogPhoto = new Canvas(shell, SWT.BORDER);
gridData = new GridData(GridData.FILL_BOTH);
gridData.widthHint = 60;
gridData.verticalSpan = 3;
dogPhoto.setLayoutData(gridData);
dogPhoto.addPaintListener(new PaintListener() {
public void paintControl(final PaintEvent event) {
if (dogImage != null) {
event.gc.drawImage(dogImage, 0, 0);
categories = new List(shell, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
categories.setItems(new String [] {
"Best of Breed", "Prettiest Female", "Handsomest Male",
"Best Dressed", "Fluffiest Ears", "Most Colors",
"Best Performer", "Loudest Bark", "Best Behaved",
"Prettiest Eyes", "Most Hair", "Longest Tail",
"Cutest Trick"});
gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL);
gridData.widthHint = 60;
gridData.verticalSpan = 4;
int listHeight = categories.getItemHeight() * 12;
Rectangle trim = categories.computeTrim(0, 0, 0, listHeight);
gridData.heightHint = trim.height;
categories.setLayoutData(gridData);
Button browse = new Button(shell, SWT.PUSH);
browse.setText("BrowsePic");
gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gridData.widthHint = 60;
browse.setLayoutData(gridData);
browse.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
FileDialog dialog = new FileDialog(shell, SWT.OPEN);
dialog.setFilterExtensions(new String[] {"*.*"});
String fileName = dialog.open();
if (fileName != null) {
dogImage = new Image(display, fileName);
shell.redraw();
Button delete = new Button(shell, SWT.PUSH);
delete.setText("No action");
gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_BEGINNING);
gridData.widthHint = 60;
delete.setLayoutData(gridData);
delete.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
Button enter = new Button(shell, SWT.PUSH);
enter.setText("No action");
gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
gridData.horizontalSpan = 3;
enter.setLayoutData(gridData);
enter.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
display.dispose();
if (dogImage != null) {
dogImage.dispose();
} -
Questions about Micro-Firmware (Not 2.x.x
Hi Guys,
i got some questions about the .0.03 firmware.
) What's the difference between the :
ZenMicro_PCFW_LB__0_03_PDE.exe ,57 MB 8 Feb 05.
and the
ZenMicro_PCFW_US__0_03_PDE.exe ,8 MB 08 Dec 04 ?
Does "US" means that this is the north american version ?
So what is LB ?
2) I've got the "ZenMicro_PCFW_US__0_03_PDE.exe ,8 MB 08 Dec 04". Is there any use of upgrading to the one from 8 Feb 05 ?
3) ZenMicro_PCFW_US__0_03_PDE.exe
Does the "E" at the end means "european", so the loudness is reduced ? Must be something different because it's also included in the firmware from the american site.Message Edited by Baron on 02-20-2005 09:0 AMFrom what I've picked up elsewhere in the forum, the LB version of the .0.03 firmware just includes MORE LANGUAGES (for the user interface, i.e. menus) than the US version of that same firmware. see : http://forums.creative.com/creativel...essage.id=2374 ... which, really, you should have found using the search function, before posting. --Fred.
/edit: linkified.
Message Edited by fred_be9300 on 02-20-2005 06:48 PM -
Stop weblogic services using StartStopServices.xml parameter leaves cmd.exe
When using the "Start > All Programs > Oracle Business Intelligence > Stop BI services" function it calls the StartStopServices.cmd file. This file then references the StartStopServices.xml file using the following statement;
<target name="stop_all" depends="set.is.stop.all, opmn.stop, wls.mgd.stop, wls.wait.mgd.shutdown, del.generated.managed.server.credentials, wls.stop, wls.wait.admin.shutdown, del.generated.admin.server.credentials">
</target>
<target name="set.is.stop.all">
<property name="is.stop.all" value="true"/>
</target
The problem that I'm having is that when the weblogic services are successfully stopped, 2 cmd.exe windows are left open on the server. I've created a batch file to call the StartStopServices.cmd and added parameters such as
Sleep.exe 30
c:\windows\system32\TASKKILL.exe /F /IM cmd.exe /T
Theoretically this should pause for a few, and then close the open cmd windows. However whenever the StartStopServices.cmd is called it closes the original command window before any statements are executed. So essentially I don't get to the taskkill or sleep parameters. I'm assuming that I need to edit the XML file somewhere to make it so it doesn't stop_all and close, but simply stops all and allows my added entries in the cmd windows to execute so ALL cmd windows are closed.
I'm scheduling a backup using RMAN in NOARCHIVELOG mode, and need to stop the weblogic processes in order to complete this backup function. However I need to end these cmd windows otherwise over the course of time they will be cascaded everywhere. Has anybody accomplished this?Hope still you need a solution for your question.
Follow these steps to achive as expected file using StartStopServices.xml, do let me know for any questions.
File loc: MW_HOME\instances\instance3\bifoundation\OracleBIApplication\coreapplication
1) I've added a new target attribute( as 'veera' to existing code) at the end of the tag
<target name="stop_all" depends="determine.language, set.is.stop.all,find.or.get.credentials, opmn.stop, wls.mgd.stop, wls.wait.mgd.shutdown, del.generated.managed.server.credentials, wls.stop, wls.wait.admin.shutdown, del.generated.admin.server.credentials, veera">
</target>
2) Added new code as show below
<target name="veera" if="wls.domain.exists" depends="wls.check.exists" description="Stop WLS">
<echo message="Srini..." />
<exec spawn="true" executable="cmd.exe" osfamily="windows" dir="${DOMAIN_HOME}/bin">
<arg value="/c" />
<arg value="taskkill /f /IM cmd.exe" />
</exec>
</target>
If it is helpful, please mark as correct or helpful
Cheers,
Veeravalli
Edited by: svee on Jul 5, 2012 3:09 PM
Edited by: svee on Jul 5, 2012 3:12 PM
Maybe you are looking for
-
ConfigureCombined invoice for Delivery and Order related billing items
Dear Guru's, Please tell us what settings one have to do in copy controls (like for TAS "OR to F2" & TAN "LF to F2") as to Combined invoice for Delivery and Order related billing items. Regards, Sai
-
Passwort protected Excel sheet
Is there any hack to open a passwort protected excel sheet? Numbers reports that the excel file is encrypted.
-
Need help upgrading a B/W G3
I haven't done a thing to upgrade my computer since I bought it in 1999. It is a 350mhz blue and white G3 with 192 mb RAM, 6 GB hard drive and Mac OS 8.6. I can't afford to buy a new computer yet and would like to get a little more mileage from this
-
Hi, I have created one input form in which products and the accounts members are coming in rows and 12 months are in columns as below--- --------------------------Jan Feb Mar...... SONY - Quantity1 SONY - Price PANASONIC - Quantity2 PANASONIC - Price
-
Cannot Telnet into 1921 router
Please Help, I cannot telnet into my 1921 router and not sure how to fix this. See below. line con 0 password 7 XXXXX logging synchronous login local line aux 0 line 2 no activation-character no exec transport preferred none transport outpu