0
votes
2answers
49 views

List of MAC addresses for 10 machines

I need to list of MAC addresses for a 10 computers having Windows 7 installed on them. These are named in a series like training1 - training10. There IP addresses are on DHCP mode and update every ...
1
vote
1answer
63 views

I want to read a value from a text file and compare it with a number

I am using windows powershell. I want to retrieve a number which is stored in a text file and compare it with some other number using a shell script. If I use $x=$(cat value.txt) it says "command not ...
0
votes
0answers
48 views

Batch Script For Replacing Files

I'm looking for a batch script to read files from a directory and replace them with a zero sized file, if it can detect some special words and then do this, it would be wonderful. For example think ...
1
vote
3answers
247 views

How to identify the local network you are connected to

I need a script to be able to identify if the computer is connected to my home network, to my work network, o to a different network, either by wifi or by cable. My question is if there some network ...
0
votes
2answers
313 views

Avoid launching explorer to UAC-elevate a program from shell

I'm a member of administrators group on Windows 7. I need to run foo.exe from a Cmd or Powershell. The exe file requires elevation to work but the elevation is not specified in its manifest. Usually ...
1
vote
1answer
479 views

How can I check through command-line the computer form(Desktop, notebook or All-in-one)?

For a very specific reason I need to check the computer form factor(Desktop, Notebook or All-in-one) remotelly, using a command through the command-prompt, powershell or vbs(Windows 7/8 systems). ...
2
votes
1answer
678 views

Running powershell scripts by drag-n-drop file or folder on it

Is there any way of running a powershell script by drag-n-dropping a file on it (just like you would drag-n-drop a file on a .exe file)? It would be also nice to be able to do the same thing with ...
-5
votes
1answer
156 views

windows 7 batch file for swapping filenames randomly

I need to write a batch file that goes into a folder and randomly swaps (renames) all the filenames. This folder has about 1000 files. So it is acceptable if there are few misses.
0
votes
0answers
79 views

scheduling various things and balancing bandwidth while using torrent and uploading

I have approximately 200 files to be downloaded via BitTorrent, these files can be from 200mb to 4.8 GB on the same time I want to take backup of some already existing pdfs in my home directory, ...
2
votes
2answers
156 views

Problems with Startup after Script runs to Shutdown Windows 7 PC

I have a simple .bat script to shutdown a kiosk style machine in our work shutdown -h -f this hibernates the machine and I have it running each evening as a scheduled job. However my problem comes ...
1
vote
1answer
219 views

Script to start computer in Safe Mode and then restart it in Normal Mode?

My PC has Windows 7 and over time it refuses to go beyond the Windows logo animation unless I start it up in safe mode first, and then restart in normal mode. That's quite a chore to do everyday and ...
7
votes
4answers
815 views

Looking for a regular expression to work on a list of comma separated values

I have line of 3 long numbers separated by comma. What I want to do is to delete the number in the middle, and leave only first number and last number separated by a comma. Currently: ...