Solved

help with batch script

Posted on 2006-06-16
1
301 Views
Last Modified: 2010-10-05
The following script is required for users accessing Citrix Terminal Server application. The application has issues with its tty port mapping, so I need to create a batch that copies its ini . My problem with the sccript is when I use the Citrix ICA client from any computername (like bks111) It creates the dev directory but creates the %computername% of the name citrix01 (which happens to be the name of the Citrix sytem). Since It creats the the subfolder name in the dev directory Citrix01 the following xcopy \\bks-gps001\dev$\%computername%\HBOWEM32.ini \\bks-gps001\TermServerProfile$\%username%\Windows /i /Y  also isn't copied over .  





IF %COMPUTERNAME%.==bks-dc001. GOTO end
@ echo off
REM Check for HBOWEM32.ini
if not exist \\bks-gps001\dev$\%computername% mkdir \\bks-gps001\dev$\%computername%
if not exist \\bks-gps001\dev$\%computername%\HBOWEM32.ini xcopy c:\Windows\HBOWEM32.ini \\bks-gps001\dev$\%computername% /i
xcopy \\bks-gps001\dev$\%computername%\HBOWEM32.ini \\bks-gps001\TermServerProfile$\%username%\Windows /i /Y

:end
0
Comment
Question by:cogit
1 Comment
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 16927060
I'm not sure I understand exactly what the desired result is.  If you want to use the computername of each client machine instead of Citrix01, substitute the variable %clientname% for %computername%.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is about my first experience with programming Arduino.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question