İptal Edildi

VBScript urgent help

I need a simple VBScript (.vbs) that does the following action.

Renames an existing redirected printer from this name :

Original printer name --> "Ticket (torre1 : 3)"

Renamed printer name --> "Ticket"

If we split the original printer name we get the following..

Ticket (name of the original local printer)

torre1 (name of the logged user)

3 (sessionID of Windows)

I know that if I execute this script that comes with windows server..

[url removed, login to view] -x -p "**Ticket (torre1 : 4)**" -z "**Ticket**"

This renames the original printer to the correct name, but I want a .vbs script that automatically looks for the user name and the session id, so basically will work on any rdp session without need to know the users name or the session id.

I also know that there's a parameter name in the DOS command parameters set list called %USERNAME% , so this part is solved.

Now the only missing is getting the SessionID that is the **number** not the RDP-TCP#1 text.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Windows

VBScript

Beceriler: Mühendislik, MySQL, PHP, Betik Yükleme, Yazılım Mimarisi, Yazılım Test Etme, Visual Basic

Daha fazlasını gör: z-hire, windows action script, dos web site, vbscript for, web rdp, vbscript, urgent p, ticket id, tcp server visual basic 2010, vbscript php, vbs user, tcp help, rdp software, rdp web, set printer, install software rdp, command help, vbscript installation, windows command script, vbs windows

İşveren Hakkında:
( 451 değerlendirme ) Esparreguera, Spain

Proje NO: #3170447