Command prompt is not opening
Hi,
i tried to open 'COMMAND PROMPT'. but not able to open. what is the problem and where should i need to change the settings for command prompt.
Regards,
venkat.
I'm going to assume you are on Windoze and are talking about a Windows Command prompt. If so, click on the Start button, then click on Run and type cmd and then click OK.
Similar Messages
-
Run Sql command line is not openning.
Hi !
sql command line is not openning.(windows 2008 enterpise and oracel 11g express)
please tel me is there any other way to open it, i have tried it from the phyical directory also.
but oracel is working properlly.
i wanted it load data from captured data to oracle database. (i was migrating).
yours sincerely
Edited by: 944768 on Aug 14, 2012 12:12 AMOpen a command prompt (cmd), from there run:
c:\> sqlplus user/passwordHow do you plan to "load data", based on what format? Sqlplus might not be the right tool for the job.
Sql*loader is one option. Another option to help with migration is Oracle SQL Developer (separate, free tool). -
Command L does not open library
Just bought Classroom in a book for CS4 flash. The command +
L does not open the library. Is the is an indication of a poorly
written book (I heard some bad things about CIB Flash CS3. Hope
this one is better. I can open the library by going to Window
library. I can't believe I'm already writing a question. This has
to be a first.
LouI just installed Ubuntu 10.04 with Firefox 3.6.8 and also getting an error on eBay when clicking on item I already bid on with a Windows PC. It states "Your browser doesn't follow HTML standards and made an invalid request.
If you feel you have reached this page in error, please try again, maybe with a different browser.." I seem to have some Linux curse. As soon as I think things are working well, something like this pops up.
Any solutions? -
VBScript Runs Correctly From Command Prompt, But Not From SQL Server Agent Job
I'm trying to run this script on my local machine to do some post-batch cleanup and it doesn't run correctly from the scheduled job (or when I invoke the job).
Here's the script in question:
Option Explicit
Const filePath = "C:\Documents and Settings\jmunn\My Documents\Visual Studio 2008\Logs\"
Const holdDays = 6
main
Sub Main()
ClearArchive
End Sub
Sub ClearArchive()
Dim fso 'As Scripting.FileSystemObject
Dim fld 'As Scripting.Folder
Dim f 'As Scripting.File
Dim delLogName, delLogOut, delCtr
Set fso = CreateObject("Scripting.FileSystemObject")
Set fld = fso.GetFolder(filePath)
delLogName = filePath & "Nightly Backup - Backup Logs Deleted" & ".txt"
Set delLogOut = fso.CreateTextFile(delLogName, True)
delLogOut.WriteLine(delLogName)
delLogOut.WriteLine("")
delLogOut.WriteLine("-- The following log files were deleted on " & DateValue(Now()) & " at " & TimeValue(Now()))
delLogOut.WriteLine("")
delCtr = 0
For Each f In fld.Files
If Left(f.Name, 48) = "Nightly Backup - SQL Server Databases_Subplan_1_" And Right(LCase(f.Name), 4) = ".txt" Then
If DateDiff("d", f.DateCreated, Date()) > holdDays Then
delLogOut.WriteLine(f.Name)
fso.DeleteFile f, True
delCtr = delCtr + 1
End If
End If
Next
If delCtr = 0 Then
delLogOut.WriteLine("No log files were deleted this run...")
End If
Set fld = Nothing
Set fso = Nothing
delLogOut.Close
End Sub
If I put the script in its own file and run it from the command prompt, it runs just fine. If the script runs from the SQL Server Agent job, the for-loop will delete the files correctly, but the filenames
do not get written to the deletion log file and the counter does not get incremented, so according to the job log, nothing was deleted. Why does the script run differently from each invocation? It can't be a permission thing, the service that logs in has full
access to the directory and the files do get deleted. Any ideas out there?
Between this and other outstanding issues, I'm quickly losing faith in SQL Server. >=o(
Thanks in advance for your thoughts!
John
Version Info:
Microsoft SQL Server Management Studio 10.0.2531.0
Microsoft Analysis Services Client Tools 10.0.1600.22
Microsoft Data Access Components (MDAC) 3.85.1132
Microsoft MSXML 2.6 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 8.0.6001.18702
Microsoft .NET Framework 2.0.50727.3603
Operating System 5.1.2600
"A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation..."Hi
jrmunn
i am trying to execute VB script to refresh my excel files.. using Vbscript file through SQL Agent job step.
i have copied VBscript in a file with the extension RefreshExcel.vbs kept in C:\RefreshExcel.vbs
Below is the script used inside the file (RefreshExcel.vbs)
//---Script code-----------------------------------------------------------------
Dim objXL, objWB
Dim FileLocation, FileName
On Error Resume Next
'lgnConn = 1
FileLocation = "F:\Reports\Reports"
Set objXL = CreateObject("Excel.Application")
objXL.DisplayAlerts = False
FileName = "ReportFile1.xlsx"
'MsgBox (FileLocation & "/" & FileName)
Set objWB = objXL.Workbooks.Open(FileLocation & "/" & FileName)
objWB.EnableConnections
objXL.CalculateUntilAsyncQueriesDone
objWB.RefreshAll
objXL.CalculateUntilAsyncQueriesDone
objWB.RefreshAll
objXL.CalculateUntilAsyncQueriesDone
objWB.Save
objWB.Close
Set objWS = Nothing
Set objWB = Nothing
objXL.Quit
Set objXL = Nothing
'MsgBox ("Refresh Completed")
---------------------------------------------------------------------------------------------------//Script complete
Now when i am trying to call this script file in SQL agent job step (as you mentioned )
as Type -cmdExec(OperatingSystem)
cscript "C:\RefreshExcel.vbs"
Issue: job step executed succesfully ,,but without performing any refresh on the excel. So i am not understandig what is going wrong. the same script file work when i am calling it through a batch file (window scheuler task). But it doesnt support
to run the file "when user is not logged in"
that is why i want to refresh my excel file through sql agent ,which can be scheduled to any time and cab be run as SQL agent credentials.
Can you please help me on this ...i have tried all the option but nothing working .. found hope by seeing your solution.
Thanks in advance.
Please help me. :-( -
Starting a WSAD server from the command prompt and not from the IDE UI
Hi,
is there a way to run the WSAD server from the command prompt instead of using the IDE UI . i have tried starting the server from the Directory i have installed WSAD " D:\Program Files\IBM\WebsphereStudio\runtimes\base_v5\bin>startServer.bat" but it gives the Following error " The system cannot find the path specified." i am working . do i have to specify the workspace that i am currently working onto see if the network adapter has registered with OPMN run: opmnctl status
the 6200 message is a timeout which can be set in opmn.xml, the reports server(s) and other processes managed by OPMN should still stop.
Try opmnctl stopall or opmnctl shutdown
Does the timeout shows up regularly ie can you repeat it?
After the stopall or shutdown try to start everything up again and try to stop the single reports server process again. -
Why windows command prompt is not working with java
I installed java 1.6 to my computer (Laptop) and it is perfectly working with Netbeans and Eclipse
but not working with windows xp xommand prompt
It compiles the code but when it is going to run it throw the following exception
Exception in thread "main" java.lang.UnsupportedClassVersionError: Example (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)I've reinstalled java 1.6, but the output is same
Please help me to get it correct
Thank youE:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracl
e\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progr
am Files\Microsoft SQL Server\90\Tools\binn\;C:\OrCAD\OrCAD_10.0\tools\pcb\bin;C
:\OrCAD\OrCAD_10.0\tools\specctra\bin;C:\OrCAD\OrCAD_10.0\tools\bin;C:\OrCAD\OrC
AD_10.0\tools\PSpice\Library;C:\OrCAD\OrCAD_10.0\tools\fet\bin;C:\OrCAD\OrCAD_10
.0\tools\jre\bin;C:\OrCAD\OrCAD_10.0\tools\Capture;C:\Program Files\QuickTime\QT
System\;C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev9
8\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Mic
rosoft Visual Studio\VC98\bin; -
Command + T does not open a new window
The title says it all. My gf's iMac doesn't open a new tab when using Command T. My MacBook Pro does. Our enabled Safari preferences are the same. Anyone know why this is?? Thanks in advance ~jeff
OK. A couple of other things to try in that case.
It may just be a corrupt preference file causing the issue, so quit Safari, trash this file and then restart Safari:
Hard drive > Users > Your Username > Library > Preferences > com.apple.Safari.plist
If that makes no difference, does it behave correctly when used from another user account on the same machine? If you don't have another account then use System Preferences > Accounts > \[+\] to create a temporary one for testing. -
On OS X, middle click and command-click do not open bookmarks in a new tab
On OS X, middle clicking or Cmd-clicking on a link, or on a bookmark on the toolbar, opens that link in a new tab. However, middle clicking or Cmd-clicking on a bookmark in the Bookmarks menu opens the link in the current tab.
In the case of middle clicking, I am using an external mouse. Cmd-click fails to open a new tab from links in the Bookmarks menu both when using an external mouse, as well as when I use my MacBook trackpad.Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
1.You can open the Firefox 4.0 SafeMode by holidng the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
If not, see this: <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes -
Could not open connection to the host, on port 23: Connect failed
Can anyone please help with this telnet problem on CISCO 877 ADSL Router
I am trying to telnet into my ISP Router remotely using public IP which has been dynamically assigned to the router by the ISP.
I can Ping the Router and I can also go out to the internet on that router but, I can not telnet into that router from Inside the Network nor Outside the Network. There are no Firewalls involved.
I have tried to clear the config and reconfigure it again, it does not help, I have also applied same config on another CISCO 877 ADSL Router it still does not work.
ERROR i get on the Command Prompt: Could not open connection to the host, on port 23: Connect failed
I have shown some of the Show Run out put below if that helps,
ip nat inside source list 1 interface Dialer0 overload
access-list 1 permit x.x.x.x 0.0.0.7
dialer-list 1 protocol ip permit
line vty 0 4
password 7 ***********
login
Manny Thanks
PunitFind Below the Requested Sh run outputs
ADSL-ROUTER1#sh run | beg line vty
line vty 0 4
password 7 ***********
login
scheduler max-task-time 5000
end
I have removed the IP for security reasons
ADSL-ROUTER1#sh ip route
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
x.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
S x.x.x.x/29 is directly connected, Vlan1
C x.x.x.x/32 is directly connected, Dialer0
x.0.0.0/32 is subnetted, 1 subnets
C x.x.x.x is directly connected, Dialer0
S* 0.0.0.0/0 is directly connected, Dialer0
I also keep getting the message below on the console done know if this is part of the problem
Mar 13 07:17:32.213: %IP_VFR-4-FRAG_TABLE_OVERFLOW: Vlan1: the fragment table h
as reached its maximum threshold 16
Hope this output helps
Thanks -
Elevated Command Prompt won't start on Windows 8.1
I have administrator rights on my account, yet I cannot start a Command Prompt window with Admin rights. When I try to start an elevated command prompt, nothing appears to happen. A "normal" rights command prompt window opens
just fine. How can I find out and correct what the elevated command prompt is not opening?Well, if the above path works fine, it may Registry volume key problem. Please follow the path below to check Registry key, if it correct.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellCompatibility\InboxApp
Roger Lu
TechNet Community Support -
I am creating a text-based application and want to make it in to a application. When I create and run the .jar file, the message box that I am using to test the running of an application, appears but the command prompt does not open and display the text I have there. How do I get the application to open the command prompt window?
Well, LordOfTheLost, you have a most persistent problem. I have used these exact methods to get my System.out.print() and System.out.println() trace comment to echo to the command window. Have you redirected your Standard out? What come up in the message box? I don't know of a Windows setting to change to alter you problem.
When you are running in Windows and you output to standard out (System.out.print) then it is just ignored, but when you are in a dos console, it outputs to the command lines. -
Ports not appearing in the command prompt
Hi all,
I have enabled the following ports in my windows 8 system using firewall. I opened the firewall.cpl and created rules both for inbound ports & outbound ports. The Opened ports are as below:-
443, 25, 587, 143, 993, 995, 80, 3478,5061,5223.
All the above ports are added in the firewall. But when I run the "netstat -an" command from the command prompt. The opened ports are not there.
Can you please guide me why this is happening. I am clueless.
Thanks for help.The command will only specify the active connections, not the ones that are opened.
Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
the thread. -
In a tabular block, i am storing file names, randomly(different file types from diffrent location on hard drive),
inside field :DOC_LOC
I have a Preview button, that allows to view the file stored from Form.
i give the following command, but i find that the Command simply flashes and goes and closes
and the file is not displyed in its respective application.
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
host ( 'cmd /C start' ||:DOC_LOCN);
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'default');At Windows-Start-Run command prompt,, the file opens successfully.
will anyone help me with correct syntax and code, in case if i am wrong, please.
Form6i - on single machine (computer at home)
TYVM.
Edited by: enlighten on Jan 3, 2010 12:39 AMHi,
Redirect the output to a file and look out for any error. I.e
host ( 'cmd /C start' ||:DOC_LOCN || ' > c:\hostlog.log');Run the form, click on the button. Open the c:\hostlog.log file and see if you have any error thrown.
Edit : I suspect the issue is because there is no space between start and the file name. It should be
host ( 'cmd /C start ' ||:DOC_LOCN);-Arun -
Win 2003 Sevver Command Prompt not working
Hi,
It seems somehow the command prompt are not working on my server and hence one of my software installation is failing on the server.
it seems the CLI commands work fine when the Command prompt is executed directly from the /system32 dir. But when we use it from Start>run>cmd, the commands don't respond.
For Example:
C:\>ping
'ping' is not recognized as an internal or external command,
operable program or batch file.
C:\>nslookup
'nslookup' is not recognized as an internal or external command,
operable program or batch file.
And when I execute it from the /system32 :
C:\WINDOWS\system32>ping
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet (IPv4-only).
-i TTL Time To Live.
-v TOS Type Of Service (IPv4-only).
-r count Record route for count hops (IPv4-only).
-s count Timestamp for count hops (IPv4-only).
-j host-list Loose source route along host-list (IPv4-only).
-k host-list Strict source route along host-list (IPv4-only).
-w timeout Timeout in milliseconds to wait for each reply.
-R Trace round-trip path (IPv6-only).
-S srcaddr Source address to use (IPv6-only).
-4 Force using IPv4.
-6 Force using IPv6.
C:\WINDOWS\system32>nslookup
Default Server: dns-blr2.cisco.com
Address: 72.163.128.140
Please check and suggest!Hi Aryanadonis ,
Thanks for posting here
According what you mentioned, I thought system can’t located command programs path when you perform this command .
Seems that you can perform these command with assign path, what I thought is this issue occurred because wrong environment variable setting.
I noticed that you have posted the Environment Variable result here, I checked and highlight wrong values that could cause this issue. please correct it and try perform
command again.
C:\WINDOWS;
C:\WINDOWS\system32;
C:\WINDOWS\system32\\wbem;
C:\PROGRA~1\CSCOpx\objects\smarts\lib;
C:\PROGRA~1\CSCOpx\objects\smarts\bin;
C:\PROGRA~1\CSCOpx\campus\bin;
C:\PROGRA~1\CSCOpx\MDC\tomcat\bin;
C:\PROGRA~1\CSCOpx\MDC\Apache;
C:\PROGRA~1\CSCOpx\MDC\Apache\bin;
C:\PROGRA~1\CSCOpx\MDC\jre\bin;
C:\PROGRA~1\CSCOpx\MDC\bin;
C:\PROGRA~1\CSCOpx\lib\jre\bin\server;
C:\PROGRA~1\CSCOpx\objects\db\win32;
C:\PROGRA~1\CSCOpx\bin;
C:\WINDOWS\system32\\wbems\smarts\binPROGRA~1\CSCOpx\MDC\ApacheOGRA~1\CSCOpx\lib\jre\bin\serverCOpx\lib\jrebin\serveremRoot%\System32\Wbem;
C:\Other Programs\net snmp\bin
This article below introduce how to modify environment variables in windows XP , but you may also reference to it and modify environment variable on you windows 2003:
How To Manage Environment Variables in Windows XP
http://support.microsoft.com/kb/310519
Thanks.
Tiger Li
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Command prompt issue from VBscript
So I have this script that works perfectly for parsing out a COM number and then sending data to said COM port via the command line (things like 'ipconfig > //./COM15'). The issue is that it only works when I use the /K modifier which tells the command
windows to stay open. I don't want them to stay open, but whenever I remove the /K, it doesn't work. Nothing gets copied to the COM port. I suspect the cause of this is the command prompt closing before things like systeminfo can finish running. So is
there a way to have the command prompt window stay open for a short amount of time and then close?
'Part 1: FindCOM port
fileName = "C:\rtlstuff\COM.txt"
Set regex = New RegExp
regex.Pattern = "COM(\d+)"
regex.IgnoreCase = True
regex.Global = True
Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.OpenTextFile(fileName)
text = file.ReadAll()
file.Close
Dim ComPort
Set matches = regex.Execute(text)
For Each m In matches
ComPort = m.SubMatches(0)
Next
'Part 2: Set file dictionary
set oDic = CreateObject("Scripting.Dictionary")
oDic.Add 0, "ECHO %DATE% %TIME% > //./COM"
oDic.Add 1, "ipconfig > //./COM"
oDic.Add 2, "systeminfo > //./COM"
v = 3
'Part 3: Set COM Variables
Set oShell = WScript.CreateObject ("WScript.Shell")
MODE = "MODE COM" & ComPort & " 9600,N,8,1,P"
oShell.run "cmd.exe /C" & MODE
'Part 4: Data transmission
Dim Command
x=0
do while x < v
Command = oDic.Item(x) & Comport
msgbox Command
oShell.run "cmd.exe " & Command
x=x+1
wscript.sleep 10000
loopCan you help me with syntax? I'm still not hugely familiar with VB and I'm not sure how to set this up. This current iteration does not work.
'Part 1: FindCOM port
fileName = "C:\rtlstuff\COM.txt"
Set regex = New RegExp
regex.Pattern = "COM(\d+)"
regex.IgnoreCase = True
regex.Global = True
Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.OpenTextFile(fileName)
text = file.ReadAll()
file.Close
Dim ComPort
Set matches = regex.Execute(text)
For Each m In matches
ComPort = m.SubMatches(0)
Next
'Part 2: Set file dictionary
set oDic = CreateObject("Scripting.Dictionary")
oDic.Add 0, "ECHO %DATE% %TIME% > //./COM"
oDic.Add 1, "ipconfig > //./COM"
oDic.Add 2, "systeminfo > //./COM"
v = 3
'Part 3: Set COM Variables\par
Set oShell = WScript.CreateObject ("WScript.Shell")
MODE = "MODE COM" & ComPort & " 9600,N,8,1,P"
oShell.run "cmd.exe /C" & MODE
'Part 4: Data transmission
Dim Command
i = True
x=0
do while x < v
Command = oDic.Item(x) & Comport
msgbox Command
oShell.run "cmd.exe " & Command , ,True
x=x+1
wscript.sleep 10000
loop
Maybe you are looking for
-
Driver issue for Oracle Enterprise Linux
Hi All, I have just installed Oracle Enterprise Linux. I was not able to access network. After doing lspci -- i found that my ethernet conrtoller : Atheros Communications AR8151 Gigabit Ethernet. Can any one tell how to install driver for this ?
-
2008 Macbook pro, 10.6.8, upgraded to 6G RAM
I have a 2008 Macbook pro 10.6.8 & I upgraded to 6G RAM & new battery in 2013. Still, after it is on for an hour or so, the caps lock light starts blinking, fan whirs laboriously, laptop gets hot below the keyboard, then the mac eventually freezes up
-
I'm just trying out the Spry features in DW CS3. I set up to validate a textfield on a form. And added a hint for a email format, but here's my problem. If users don't type anything in the form at submit it, it still processes the hinted email addres
-
Please help!! How to implement a company directory with OSX and exchange?
We just have our exchange setup correctly with our Snow Leopard clients. Everything is working perfect, email, calendar. The only problem is despite the OSX's Address Book being integrated, there is no possible way to view everyone in the company. In
-
MAC PRO TO LGTV WITH WI-FI DIRECT. MAC SETTINGS?
My mac finds the TV but TV can't find Mac. What settings do I need on Mac and how do I set them. I would like to connnect Mac to TV wirelessly.