during antivirus installation this error required"an installation on a server system othis product is not possible. the setup willbe cancled." what should i do to install it
I am asking if there is a quick way/command to save the current standard output from cmd.exe or powershell to a file.
For example, I have run a bunch of commands in cmd.exe which generating like hundreds of lines of standard output. Ideally, I am looking for a single command to do "select all" and save to a file automatically.
Note: I've read this. But I don't want to change my original commands, so "" or "" redirection cannot be used in this scenario.
Thanks.
The accepted answer of this question Fast Ways of Cd'ing on *nix? mentions bash having CDPATH
is there an equivalent in windows?
so from any directory e.g. c:\windows
I could do c:\windowscd compbar* and it'd take me to m:\a\b\c\d\e\compbar
what if there are many compbar directories? well, the CDPATH solution is one solution, I suppose you order them it'd search through the CDPATH environment variable and choose the first.
I'd like that for windows.
There are a few parts to this question.
The first is:
I'm running a virtual machine guest using vmrun and nogui, when I open the VMWare Fusion application, the window library opens but subsequently also opens any window of a running VM. Is there a way to prevent this?
Secondly, but related:
Once it does pop up or I have that separate VM Window open, is there a way to close the window such that it does not suspend or shutdown the vm i.e. convert it back to nogui mode?
I have some fairly large tarball archives, from which I need to extract some files. I will later repack those files to transfer them to another server. Currently that is a two (multi) step process for me:
mkdir ttmp
tar -vxzf large.tgz -C ttmp/ --strip-components=<INT> <folder-to-be-extracted>
or alternatively with wildcards
mkdir ttmp
tar -vxzf large.tgz -C ttmp/ --strip-components=<INT> \
--wildcards --no-anchored '*pattern*'
Then I go ahead and recompress the created folder
tar -vczf small.tgz ttmp/*
rm -rf ttmp
How can I combine these two commands into one? Like this
tar -x large.tgz > tar -c small.tgz
Just to show, what I already tried:
Whenever I search the terms "extract" I will end up here or here or even here. When I use the term "split" I will end up here and that is definitely not what I intend to do. When I use "repack" I end up in strange places.
I have a slight problem with my project I've working on...
I have replaced explorer with iexplore in kiosk mode. iexplore loads a speeddial type of webpage for a set of windows programs. I launch those programs with PHP's system().
The problem is, when the programs launch, they launch BEHIND iexplore instead of in front of it.
How can I force the programs being launched to ALWAYS load in the foreground?
I am experiencing some odd behaviour when using findstr to search a collection of .php files.
Depending on how I specify the file list, the file is not being found, even though it contains the string in question.
These two files contain the string "personemail": Content.php and People.php
A) Works as expected (finds personemail in Content.php and People.php)
findstr /i /s /c:"personemail" *
B) Fails (finds only in Content.php) - expected to find in Content.php and People.php
findstr /i /s /c:"personemail" *.php
C) Works as expected (finds in People.php):
findstr /i /s /c:"personemail" p*.php
What is going on?
I know that the copy command has an option to automatically replace a file if it already exists, but I want to know if it is a way to copy the files only if they not already exist (/Y). I do not know the actual file names in the batch code, as I copy from the source using wildcards in the copy command:
copy *.zip c:\destination
The reason I want this instead of automatic overwrite is that the files are large, and to skip existing would save a lot of execution time.
I am using Mac OS X Snow Leopard and when I type
ls c *
this is what I get in my terminal:
clock:
PSD demo.html jquery.tzineClock script.js styles.css
clock2:
clojure-presentations:
Clojure-1up.pdf ClojureInTheField-1up.pdf license.html
Clojure-4up.pdf README
ClojureForRubyists-1up.pdf keynote
coffee-script:
Cakefile README bin examples index.html package.json test
LICENSE Rakefile documentation extras lib src vendor
By default I am using Bash.
I have the following powershell script, which executes a few robocopy commands:
ROBOCOPY.exe $q3 $q4 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
ROBOCOPY.exe $q2 $q3 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
ROBOCOPY.exe $q1 $q2 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
ROBOCOPY.exe $src $q1 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
This works fine, but it takes a really long time, I'm wondering, if there is a way that I can have robocopy do a "cut + paste" instead of a "copy + paste" so windows will move the NTFS pointer to the file, instead of actually copying all of the bits of each file?
Hi,
I'm using two network connections, and I tried using the "route" command so that when I access a specific internal IP on my LAN, it would use connection 1, anything else would go normally through connection 2 (which doesn't have access to my LAN).
The problem is I have a bunch of internal IP's that I need to access, and the "route" command doesn't seem to allow me to add an IP range instead of specific IP. And connection 1 doesn't have internet access, so I can't use it as my default connection.
Any idea how this can be solved?
Your help is appreciated
I use the following commands to sync folders. Each command requires me to type in the password. How can I group these commands to only enter the password once? Thanks.
rsync -ave ssh /opt/lampp/htdocs/new/folder1/ [email protected]:/home/folder1/
rsync -ave ssh /opt/lampp/htdocs/new/folder2/ [email protected]:/home/folder2/
rsync -ave ssh /opt/lampp/htdocs/new/folder3/ [email protected]:/home/folder3/
when I run the following command:
tar -c music.tar iTunes\ Music/
But I get the following garbage output. b????n5???z???V_o?P?O3|?b???i?Pl?jH??8??z5??????~D|_($?|b??:???š`?s7
?%z\??Jj????K????Z??V?)?A4
2??}?4?(??#?P??ykX
?Q?e<?w?U????Y?8n??s? 1B??F.f?
?X9Lb=8??@????|?h?d???I??L?]??????-????gx??l????n?cs{f???f???6?M(?u??6??|pX?nH?V???$???????7??n?H???Yua??Xn?;{?JP?????7?@R?f_?j?*????3M?z?s9???"??0?$1??7:w???????|D_?????EjtO????????P?Y?-? xVF???Uwky?u?Yt?h ???K
?nJh?]K?J-?2??#Q????~?~B)O?MH??
"??6#?Q,uNG?~??4t?=^C
I don't really care if I'm just missing some font library. But I haven't run this to completion because...well i'm not really sure what it's doing.
any help appreciated.
I am attempting to use the zip -r command to zip a folder which includes two files. I need to pass the absolute path of the folder with two files (/path/to/my/files/), which is causing all of the folders to be zipped with it, where as I only need the last folder (files/) and its contents to be zipped, so that when the file is unzipped, there is only one folder and the two files within it. How can I modify the command to be able to pass the absolute paths in the arguments while keeping only the last folder?
I love using time to find out how long a command took to execute but when dealing with commands that execute sub-commands internally (and provide output that allows you to tell when each of those sub-commands start running) it would be really great to be able to tell after what number of seconds (or milliseconds) a specific sub-command started running.
When I say sub-command, really the only way to distinguish these from the outside is anything printed to standard out.
Really this seems like it should be an option to time.
I have two volumes, one xfs, and another ntfs - ntfs was empty, and xfs had 10 subitems.
I needed to sync them.
I initially copied a few of the subitems by dragging them over in a gui fm. Several of the direct descendants which i had dragged finished, apparently. One I stopped before it was done, and the rest I cancelled while it still appeared to be gathering information about the files.
Then I ran rsync -acvvv xmp/ nmp/, where xmp and nmp are the volumes' respective mountpoints, which exited with a 0 status.
find xmp -printf x | wc -c and find nmp -printf x | wc -c both return 372926.
My question is: Am I guaranteed that the two drives' contents are identical?
I am using ffmpeg like this e.g.:
ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv
to cut out a section of a large file. The -ss part works fine but the -t is ignored. That is, it correctly removes the first -ss seconds but then just keeps going to the end of the input with the copy.
Is there a way to use ffmpeg to cut off the end of a video without recoding it?
I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this:
C:\path to\putty.exe -ssh adreese.ip -l user -pw Password -m C:\Path to\command.txt
commands.txt contains the following:
wakeonlan -i broadcast adress Macadress
However, when I try to do so a new window for PuTTY appears, but it closes and exits instantly after login. As a result, I cannot see the output of the command(s).
After a several tests, it appears that the command is not execute , cause my computer doesn't "wake on lan". I don't understand what's going on here ?
I cannot use the plink.exe program cause I cannot make connection with public key ( too much distant site for doing all the registration keys in putty )
Can someone help me with this ? Or can i use another program to make ssh connection and send command with script from a windows os?
Edit : I also try to make a bash file in the distant server with the same command and execute it from the session like this :
C:\path to\putty.exe -ssh adreese.ip -l user -pw Password \home\user\script.sh
Ihave the same problem... Need help please : /
I am getting an error message to the effect of unable to move files to a single file. I am not trying to do this. What I am trying to do is move files from one folder to another folder (staging) and then deleting the original folder.
If you can show me a better way to do this since I am not doing this correctly.
Thank you.
Here is my .cmd file:
Y:
move "Y:\ABC_files\*.js" "C:\Documents and Settings\user\Desktop\ABC_Stage\ABC_files\"
move "Y:\ABC_files\*.css" "C:\Documents and Settings\user\Desktop\ABC_Stage\ABC_files\"
move "Y:\ABC_files\*.png" "C:\Documents and Settings\user\Desktop\ABC_Stage\ABC_files\"
move "Y:\ABC_files\*.htm" "C:\Documents and Settings\user\Desktop\ABC_Stage\ABC_files\"
move "Y:\ABC_files\*.gif" "C:\Documents and Settings\user\Desktop\ABC_Stage\ABC_files\"
move "Y:\ABC.htm "C:\Documents and Settings\user\Desktop\ABC_Stage\"
rmdir "Y:\ABC_files"
C:\"Program Files"\"App X"\App-IDE.exe -r ABC4.run
I have seen how simple it is for Mac OS to generate pdf from a document without additional software to install.
But I am looking for this functionality in Linux.
One scenario, for example, if I have myDocument.txt that contain an article, how can I convert this into pdf? My next question is, assuming that myDocument.txt is a 3-paged document, will it generate a 3-page continuous pdf and not just 3 separate pdfs?
Any tools for linux that does this? (GUI is fine, but commandline is preferable)
I am working on an auto-install script for where I work and we have a ClickOnce type application we use from a vendor. I have looked into it and we can't automate the install but we would like to be able to at least start the install automatically.
I have tried
rundll32.exe dfshim.dll,ShOpenVerbApplication "%SOFTWARE%\ToolsApp.application"
but it gives me an error about an invalid URI.
What would probably be the easiest is to use whatever program Windows has (Windows XP in our case) to run the default "handler" for the file. I don't know if any such thing exists, but that is what comes to mind.
As the title says.I would like a script that tells windows that the next boot should be into safe mode or atleast that the "F8" menu should be presented next boot.Booting into WinRE(Launch startup repair...) is problably even more un-doable.I looked over bcdedit options but did'nt see anything like this.I know msconfig has an option for safe boot but it's gui only.
Currently if i wan't to boot into safe mode or launch WinRE then i have to forcefully restart my pc first for those options to be presented during boot(F8 does not bring up the safe mode option under normal conditions).
Im using Windows 7 x64.
I'm looking for some software for my OpenSUSE, which with I would be able to organize my audio files.
I've found one, which may be good, but it's unable to run without X server (in CLI).
http://musicbrainz.org/doc/MusicBrainz_Picard
I'm not looking for ID3 renamers. There're maybe hundreds of them... I'm looking for software, which has its own database, or is able to communicate with some database, like CDDB, Gracenote, last.fm etc.
I am currently working in a big company and we have serious latency issues.
This is happening in a process control system, and is unacceptable (Open a valve sometimes take 2 minuts before command start)
The Network team seems very lazy and I want to check when they say "everything alright on the network".
So, I want to create a loop that ping the server and write the result in a text file.
I am not a batch expert, but do you think this code is correct to use?
@ECHO OFF
:LOOPSTART
time /T
ping xxx.xx.x.x -t >> filename.txt
sleep -m 3000
GOTO LOOPSTART