[THIN] Re: I Need to create a batch file

  • From: Anders Hansen-Øvre <Anders.Hansen-Ovre@xxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Wed, 19 Mar 2003 09:23:58 +0100

Make a batch file like this:

@echo off
Start u:\users\%username%\Expens~1\Expens~1.exe
exit

Publish the batch file, just get the correct icon from the real exe =
file.

---
mvh/yours
Anders Hansen-=D8vre, Seniorkonsulent
Mail    : anders.hansen-ovre@xxxxxxxxx
Cell    : (+47) 90 98 17 78

Konsulenthuset Contra as
http://www.contra.no
=20

> -----Original Message-----
> From: Robert Williams [mailto:RWilliams@xxxxxxxxxx]=20
> Sent: 18. mars 2003 23:08
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Re: I Need to create a batch file
>=20
>=20
>=20
> Ok, when I publish the app, it won't start. After my login=20
> script runs (scriptlogic)which is supposed to map the w:=20
> drive, I get the following message.....
>=20
> "expense report form" failed to start
> The citrix server is unable to process your request to start=20
> this published application.
>=20
>=20
> Ok, what am I doing wrong? My scriplogic log file says that=20
> w: was mapped and when I logon to a user desktop it works....
>=20
> Thank You,
> Robert Williams
> Senior Network Administrator
> Raypak, Inc.
> rwilliams@xxxxxxxxxx
> Phone - 805-278-5352
>=20
>=20
>=20
> -----Original Message-----
> From: Robert Williams [mailto:RWilliams@xxxxxxxxxx]=20
> Sent: Tuesday, March 18, 2003 12:31 PM
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Re: I Need to create a batch file
>=20
>=20
>=20
> Thanks will try this
>=20
> Thank You,
> Robert Williams
> Senior Network Administrator
> Raypak, Inc.
> rwilliams@xxxxxxxxxx
> Phone - 805-278-5352
>=20
>=20
>=20
> -----Original Message-----
> From: Anders Hansen-=3DD8vre =
[mailto:Anders.Hansen-Ovre@xxxxxxxxx]=3D20
> Sent: Tuesday, March 18, 2003 12:28 PM
> To: thin@xxxxxxxxxxxxx
> Subject: [THIN] Re: I Need to create a batch file
>=20
>=20
>=20
> There are many ways to do this but here is a few options:
>=20
> 1. Include this in the logon script for the users.
> Since I don't know what kind of loginscript you here is=20
> syntax for =3D batch
>=20
> If not exist "U:\Users\%USERNAME%\Expense Reports" MD =3D3D=20
> "U:\Users\%USERNAME%\Expense Reports" If not exist=20
> "U:\Users\%USERNAME%\Expense Reports\Expense Report =3D3D=20
> Form.exe" XCOPY x:\source\source-file.exe=20
> "U:\Users\%USERNAME%\Expense =3D3D Reports" /y
>=20
> !LINES WILL WRAP!
>=20
> 2. Make a batch file to check all the user dirs
>=20
> Make a batch file in u:\users called yyha.bat :)
>=20
> For /d %%d in (*) do If not exist "%%d\Expense Reports" MD=20
> "%%d\Expense =3D =3D3D Reports" For /d %%d in (*) do If not exist=20
> "%%d\Expense Reports\Expense Report =3D3D Form.exe" XCOPY=20
> x:\source\source-file.exe "%%d\Expense =3D Reports" /y
>=20
> !LINES WILL WRAP ONCE MORE!
>=20
> Execute: Start - Run - CMD | U: | CD \Users | yyha.bat
>=20
> Hope this helps.
>=20
> Have a nice day.
>=20
> ---
> mvh/yours
> Anders Hansen-=3D3DD8vre, Seniorkonsulent
> Mail    : anders.hansen-ovre@xxxxxxxxx
> Cell    : (+47) 90 98 17 78
>=20
> Konsulenthuset Contra as
> http://www.contra.no
> =3D3D20
>=20
> > -----Original Message-----
> > From: Robert Williams [mailto:RWilliams@xxxxxxxxxx]=3D3D20
> > Sent: 18. mars 2003 21:02
> > To: 'thin@xxxxxxxxxxxxx'
> > Subject: [THIN] I Need to create a batch file
> >=3D3D20
> >=3D3D20
> >=3D3D20
> > I am going to publish an app in nfuse for users to run an=3D3D20  =
=3D
> expense=3D20
> >report. Each user will have an executable in their=3D3D20  Home =3D
> Directory (=3D20
> >W:\ ), my sitution is that I would like to=3D3D20  create a=20
> subfolder in
> >=3D
>=20
> >each w: drive for this app but I=3D3D20  cannnot remember how=20
> to create =3D
> a=3D20
> >batch file to autocreate a=3D3D20  subfolder under each =
%username%=3D20
> >folder... =3D3D20  I found a batch file to copy file to the=20
> root of each=20
> >w:\=3D3D20  drive but not a subfolder.... Any of you batch file gurus =

> >out=3D3D20  there can help?
> >=3D3D20
> > Here is what I need:
> >=3D3D20
> > My folder structure is u:\users\%username%\
> > I want to create a folder called "Expense Reports"
> > I want to copy a file called "Expense Report Form.exe" to=3D3D20
> > each "Expense Report" folder.
> >=3D3D20
> >=3D3D20
> >=3D3D20
> > Thank You,
> > Robert Williams
> > Senior Network Administrator
> > Raypak, Inc.
> > rwilliams@xxxxxxxxxx
> > Phone - 805-278-5352
> >=3D3D20
> > *********************************************************
> > This Week's Sponsor - RTO Software / TScale
> > TScale increases terminal server capacity.=3D3D20
> > Get 30-40% more users per server to save $$$ and time.=3D3D20
> > Add users now! - not more servers. If you're using Citrix,=3D3D20
> > you must learn about TScale!  Free 30-day eval:=3D3D20
> http://www.rtosoft.com/Enter.asp?ID=3D3D3D79
> **********************************************************
>=20
> For Archives, to Unsubscribe, Subscribe or=3D3D20
> set Digest or Vacation mode use the below link: =3D3D=20
http://thethin.net/citrixlist.cfm

*********************************************************
This Week's Sponsor - RTO Software / TScale
TScale increases terminal server capacity.=3D20
Get 30-40% more users per server to save $$$ and time.=3D20
Add users now! - not more servers. If you're using Citrix,=3D20 you must =
learn about TScale!  Free 30-day eval: =
http://www.rtosoft.com/Enter.asp?ID=3D3D79
**********************************************************

For Archives, to Unsubscribe, Subscribe or=3D20
set Digest or Vacation mode use the below link: =
http://thethin.net/citrixlist.cfm
*********************************************************
This Week's Sponsor - RTO Software / TScale
TScale increases terminal server capacity.=20
Get 30-40% more users per server to save $$$ and time.=20
Add users now! - not more servers. If you're using Citrix,=20
you must learn about TScale!  Free 30-day eval: =
http://www.rtosoft.com/Enter.asp?ID=3D79
**********************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link: =
http://thethin.net/citrixlist.cfm
*********************************************************
This Week's Sponsor - RTO Software / TScale
TScale increases terminal server capacity.=20
Get 30-40% more users per server to save $$$ and time.=20
Add users now! - not more servers. If you're using Citrix,=20
you must learn about TScale!  Free 30-day eval: =
http://www.rtosoft.com/Enter.asp?ID=3D79
**********************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link: =
http://thethin.net/citrixlist.cfm

*********************************************************
This Week's Sponsor - RTO Software / TScale
TScale increases terminal server capacity. 
Get 30-40% more users per server to save $$$ and time. 
Add users now! - not more servers. If you're using Citrix, 
you must learn about TScale!  Free 30-day eval:
http://www.rtosoft.com/Enter.asp?ID=79
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: