Any way to make a batch file [remote desktop connection] [charter changes]

Q: I have setup at my aunts machine will run in another country, so I can help her from time to time and it worked fine for the dynamic IP and I have to go through the headache of running it by getting me the new IP address. Is there a way to organize a bat run ipconfig and send the results via an e-mail file once every two weeks or so?


Best Answer: Do you have control over the website/server in which you want to upload the files to?
There's a bunch of ways to accomplish what you want, the batch process could be an ftp call to send x files from x directory to x directory on x server.
To accomplish any of the many possibilities,however, you would need an FTP/SSH etc. username/password in order to do this.
If you do not have this, or control over the destination server, then no, I don't believe you're going to do this without being granted further access.

Remote Influence
Re:worked like a champ, I just scheduled it to run every day and all she has to do is click send when she sits down at her pc.
99 % automated

The Remote Entrepreneur
Re:wow! thanks for all your work while i was at work ;)

I will try that out this evening and let you know if it works for me.
much appreciated


Remote Control Content
Re:no i dea why it started to work now , meh, thx for the help

So hear it is

ipconfig | findstr "IP Address"
for /f "tokens=15" %%a in ('ipconfig ^| find "IP Address"') do @set addr=%%a
start mailto:9iak@mn.com?subject=%addr%

this should do it for u


DupeCop Desktop v2
Re:thats true, just trying to see if could of figured it out.. :) its the geek in me lol, that drives me to it. lol

BUt if ur using a router, most routers have to ability of sending the log to an e-mail address so when a new ip is changed on the router u get a log of it.


Social Connect Blueprint
Re:Originally posted by: guy
hmm, so the subject had ur ip address ?

what the hell its not working for me

Yup, Outlook Express loaded up, then new message screen popped up, and my email address was in the first line, and the IP address was in the subject line.

Another thing to consider is if the computer is behind a router. In my case at work, the IP that IPconfig reads is my LAN address, not the public IP. If she's behind a router, then just reading from IPconfig won't work.


How to install a car alarm, remote start, or keyless entry system
Re:hmm, so the subject had ur ip address ?

what the hell its not working for me


Desktop Messenger 2.0 – #1 Autoresponder Software.
Re:I copy and pasted your 3 lines into Notepad and saved it as IP.bat. I just doubleclicked on the BAT file and it loads up my default mail client with the address and subject in the correct places. I wasn't prompted to hit enter at any time.

Metatrader on iPad, iPhone, Droid, Mac, and PC
Re:don't think that will work. Is is possible to run start mailto from the command line?….I don't think so.
Yes it does work give it a try

ipconfig | findstr "IP Address"
for /f "tokens=15" %%a in ('ipconfig ^| find "IP Address"') do @set addr=%%a
start mailto:9smiak@en.com?subject=%addr%

this works when instered into a batch file now, just i have to press enter 3 times before the ip address is setup in the subject,, i have no idea why but i am trying to figure it out


Change Your Mind, Change Your Life
Re:Originally posted by: guy
Ok this is what i figured out, having still a bit trouble

if i open CMD and type one line at a time it cool but having difficutly putting it in a batch file

THIS IS WHAT I DO

ipconfig | findstr "IP Address"

for /f "tokens=15" %a in ('ipconfig ^| find "IP Address"') do @set addr=%a

start mailto:9niak@mn.com?subject=%addr%

some one help me put this in a batch file? than it will wokr for u

I don't think that will work. Is is possible to run start mailto from the command line?….I don't think so.


Mind Power – Remote Influence Techniques
Re:Ok this is what i figured out, having still a bit trouble

if i open CMD and type one line at a time it cool but having difficutly putting it in a batch file

THIS IS WHAT I DO

ipconfig | findstr "IP Address"

for /f "tokens=15" %a in ('ipconfig ^| find "IP Address"') do @set addr=%a

start mailto:9niak@mn.com?subject=%addr%

some one help me put this in a batch file? than it will wokr for u


Re:@echo off

echo Put IP address into file…
ipconfig.exe >IP-to-file.tmp

echo Leave only lines that contain "IP Address"
FINDSTR /I /C:"IP Address" IP-to-file.tmp >Computer-IP-address.txt

del Computer-IP-Address.txt

echo done

this will get u the IP address

open the IP-to-file.tmp with notpad and u should see the ip , subnet gateway, tryting to figure out how to email it.


Re:I used to do this using a program called IPMonitor that could sent out an email or upload a custom HTML everytime the IP address changed. However, since switching to a DynDNS.org account, it's been uninstalled from my system. :)

Re:Also,

If she is behind a router, some routers will actually support a given Dynamic DNS service.

I know that both Linksys and D-link do this. Not sure about others.


Re:Thats a good solution ! I forgot about that. maybe be the best way to go

Re:You could set her up with a dyndns.org account, they're free. I use one for my to home. Just have a small client (a number of them are listed on the website) running on her system, which will routinely update the dyndns.org database with any IP udpates.

Related posts

Leave a comment

0 Comments.

Leave a Reply


click to changeSecurity Code

[ Ctrl + Enter ]