Is there any way in windows XP to create a shortcut to a file from the command line?
If not what is the easiest Winapi call to create a shortcut to a file?
I'd like to get a list of all domains pointed to a certain IP address. Is there a way to get this information from the command line?
Nothing like "host", "nslookup" or "dig -x". Those return the hostname of the IP address which, while helpful, is only part of what I want returned.
Hi all,
Is there a commandline tool for Windows XP to display system resources, like available memory usage, cpu, diskspace etc... Small and requires a non-install.
Best Regards,
Anders
Hi all,
Is there a commandline tool for Windows XP to display system resources, like available memory usage, cpu, diskspace etc... Small and requires a non-install.
Best Regards,
Anders
I've been wondering what command-line aliases (such as in bash, or just even .bat files under Windows) you can't live without?
I'll start off with my favourite:
alias q=exit
I'm trying to reach the command prompt through a vista recovery disk I have, and it boots from the disk and gets to the point where it asks which installation I want to repair and then says the disk is not compatible with my version of windows. I have a dual boot setup with Vista and server 2008 R2.
Is there another was to run check disk? I can't boot in safemode or normally, I suspect a driver (atipcie) is the problem
I'd like to do something like
dir *.* > clipboard
ie. get to get the standard output of a commandline program copied to the clipboard. Can this be done on a standard XP machine without additional programs?
How do I invoke Filezilla from the commandline to upload the contents of a directory? I would also like to set parameters like overwrite all etc.
From help page all I see is options for opening Filezilla with specific server etc, but not to upload...
I'm normally a windows user and I am currently using PuTTY to connect to a headless linux box that is running Fedora 8. I need to download the latest JDK and install it but I have to do it using the commandline.
How can I do this?
How can I change the icon of a Command Prompt icon that's pinned to my Windows 7 taskbar?
I've gone into its properties, selected "Change icon", browsed to the new icon, and pressed "OK". The system acts as Windows always has in that situation, but the icon does not change.
Hi I have a bunch of files with spaces in the name, is there a way to mv them to new files without spaces in. For example I have the file Hello World.pdf I want to move it to Hello_World.pdf. Obviously for the one file I can use the mv command but I want to do it to all files in a folder.
Thanks
Is there a way to restart a virtual machine running under Windows 7 Virtual PC from command line? Basically, i want to do a soft restart, same thing as clicking on Ctrl+Alt+Del button achieves.
Is there any Linux command which remembers directories I changed, and shows its stack with interacting operation to choose a directory such as pushing an arrow key on keyboard? This must be different from the way pushd/popd/dirs do.
Don't ask why, but I would like to know a linux command, besides "la -laR", since that could not take that long according to where you are in the folder structure, that takes much time to complete.
Thanks for your help.
Is there a commandline way of stopping a process if I know the name of the exe (or better give a wildcard). I was about to jump in and write an autohotkey script to do it but I thought I would look for out of the box ways first.
Interested in Windows XP and Vista.
I have created a folder (d:\shortcuts), created shortcuts for most applications in this folder and appended the folder path to the Path environment variable. Now all my applications are available from run and command window without messing around with Path.
However, I now have to type the name of the shortcut as well as extension (e.g. vlc.lnk) to invoke it. Is there any way to do this without typing the extension?
I'm quite new to strace / netstat / etc. I'm using this command to get a trace of the apache process handling my request (telnet), is there a way to simplify it a bit?
sudo strace -o /tmp/strace -f -s4096 -r -p $(netstat -antlp | \
grep $(lsof -p `pidof telnet` | grep TCP | \
perl -n -e'/localhost:(\d+)/ && print $1') | grep apache2 | \
perl -n -e'/ESTABLISHED (\d+)/ && print $1')
Thanks!
I have a bunch of avi's I am converting to m4v, and I can do this in QuickTime by opening the video and then go 'Save As', select a folder, select the type (iPhone, Movie, etc), blah blah blah. But I have around 100 videos I want to do this with. Commandline options? Or batch processing options in the GUI? Enlighten me, please.
This is QuickTime X on Snow Leopard.
I like to know how to use command-line to connect to a wired network in general for Ubuntu 8.10?
In my case, I connect a cable to my laptop but it doesn't work with my WICD. So I like to try command-line method.
Here is the ifconfig of my network adapters:
$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:c0:9f:8d:23:74
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:19 Base address:0x1800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4457 errors:0 dropped:0 overruns:0 frame:0
TX packets:4457 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:493002 (493.0 KB) TX bytes:493002 (493.0 KB)
wlan0 Link encap:Ethernet HWaddr 00:0e:9b:ab:56:19
UP BROADCAST NOTRAILERS PROMISC ALLMULTI MTU:576 Metric:1
RX packets:1508929 errors:0 dropped:0 overruns:0 frame:0
TX packets:768144 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:806027375 (806.0 MB) TX bytes:78834873 (78.8 MB)
wlan0:avahi Link encap:Ethernet HWaddr 00:0e:9b:ab:56:19
inet addr:169.254.5.92 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST NOTRAILERS PROMISC ALLMULTI MTU:576 Metric:1
wmaster0 Link encap:UNSPEC HWaddr 00-0E-9B-AB-56-19-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Thanks and regards!
UPDATE:
Tried what oyvindio suggested. Here is the failing message:
$ sudo dhclient3 eth0
There is already a pid file /var/run/dhclient.pid with pid 18279
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
mon0: unknown hardware address type 803
wmaster0: unknown hardware address type 801
mon0: unknown hardware address type 803
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:c0:9f:8d:23:74
Sending on LPF/eth0/00:c0:9f:8d:23:74
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
I have a number of Scheduled Tasks running on a Windows machine, which is design to run stand alone and show useful information to the office.
Part of it's use is to run a screensaver that itself shows useful information.
There are some scheduled tasks which need to display information to the screen, however as the screensaver is running these messages can't be seen until the screensaver it manually deactivated.
How can the currently running screensaver in Windows be deactivated from command script?
What is the most damage (of whatever kind) that you have ever caused with a single mistaken/mistyped/misguided command line? I deleted a production system database by mistake a while back, for example, but I was lucky (i.e. backed-up) and there was no permanent data loss, lost money, property damage etc.
Most importantly (for votes), what do you do to make sure it will not ever happen again?