473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Script 2 Create RDP sessions

Anyone ever used a script to create RDP session files?
You can edit an RDP file using any text editor, however if you try to use simple batch, or vbscript to append text to that file, it doesn't retain it normal properties.

Hopefully this example will make sense.
I have 300 servers.
I have a file with all their names/or/IPs in it.
I wanted to create a batch file or vbscript that would run through that list and create files named HOSTNAME.RDP.
That part was easy and they work on my lapotop/desktop HOWEVER:

My ultimate goal was to store these connection files on SharePoint so you can simply click on the host and connect via RDP.

When I uploaded the files I created with my batch file, SharePoint opens them and shows me the TEXT content, and doesn't let me open the file via RDP - EVEN though it has an RDP extension.

After banging my head against the wall for a while I noticed the following:
If I used these files on my system - no problem they will open in RDP like normal but the DON'T work from SharePoint!!

If I manually edit an RDP file that was saved through the RDP gui, no problem AND it works on SharePoint.

So there must be something in the file that NotePad/WordPad can't see that I am missing and that I can not re-create by writing to a "text" file in batch or VBScript.

I can use VBScript and the ADODB.Stream object to read the "GOOD" default RDP file, but then I can't figure out how to add the next line which would be the "HOST" part and would be unique over the 300 files.

Does that make sense to anyone? and can you help?
I have some code pieces that I have been trying but they don't write the host line correctly if you want to see what I was using.

Thanks!
niveknonrev
May 29 '07 #1
1 7983
Banfa
9,065 Expert Mod 8TB
Sorry about the lag in reply.

If you are still having problems then

1. It sounds to me as if RDP files are not entirely text and you are not creating them correctly. Try loading on into a hex editor (Google for one) and looking at the binary values stored in the file.

2. For a VBS question you best bet is to ask in the ASP forum
May 31 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jean-Louis Vill | last post by:
Hi everybody, I have a personel server (I learning) with Linux I use apache, Php, Postfix. I want create with Php script a mail user by web form (yahoo like) I don't really know Php. May be...
6
by: Danny | last post by:
I am able to read the contents of our dynamic pages, but how can I create these html files on the fly on our server using asp. THe code below is a test to see if I can read the html and then save...
1
by: Duncan | last post by:
I have a strange problem with sessions in PHP 5. I have a simple script that prints a random number both as a string and a picture on the screen. When I run the script for the first time, it works...
2
by: runner7 | last post by:
Can anyone tell me if there is a way in PHP to determine when a session times out on the server or how many concurrent sessions there are in your application?
3
by: chenna | last post by:
Hi guys, Please anybody answer my question "How to create sessions.".
41
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
0
by: kevin bailey | last post by:
Must be missing something obvious here but if I create sessions on a server I use $b = new Auth("MDB2"); $b->setSessionname("SESSION1"); This means I can have other sessions created by ...
1
by: ni3b007 | last post by:
I m having oracle 10g while creating database its giving me error database not mounted this is my p file; ########################################### # Cache and I/O...
1
by: bn4 | last post by:
I have been trying to modify a script that i had working in the past but have lost.. ORIGINAL URL: http://www.thescripts.com/forum/thread147097.html STEPS: I want it to do the following:...
7
by: Jarosław Kozik | last post by:
how to create script - update database development code using MSSQL 2000 Enterprise Manager i'm trying in this way all tasks -genetate sql script .... ( in this way I can generate only CREATE...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.