Aaron
Member
Registered: 9th Aug 04
Location: Cottingham, East Riding
User status: Offline
|
I'm trying to automate the running of an app when a user logs on. I've decided to use Batch script rather then VBScript at the moment.
The path to the app is C:\Program Files\Promissor\Administrator and the executable name is Administrator.exe
When i put the following code in a batch file and run it, i get an error saying it can't fine the specified path.
code:
C:
CD "Progra~1\Promis~1\Admini~1"
Admin~1.exe
But...
If i open a command prompt and do it all by hand, it works fine  
Any ideas?
Scripting isnt really my thing tbh
|
Tommy L
Member
Registered: 21st Aug 06
Location: Northampton Drives: Audi wagon
User status: Offline
|
Aj. would know what to do.
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
should be -
code:
CD C:\Progra~1\Promis~1\Admini~1
Admin~1.exe
should work 
edit 2 - also try
code:
cd C:\Program Files\Promissor\Administrator
Administrator.exe
[Edited on 03-03-2008 by Dom]
|
Aaron
Member
Registered: 9th Aug 04
Location: Cottingham, East Riding
User status: Offline
|
quote: Originally posted by corsa_tomtom
Aj. would know what to do.
This Aj. u talk of sounds clever. If there was such a user, i'd u2u him
|
Dan Lewis
Member
Registered: 31st Jan 05
Location: Leicestershire
User status: Offline
|
or you could just put the app in the startup folder
|
Aaron
Member
Registered: 9th Aug 04
Location: Cottingham, East Riding
User status: Offline
|
quote: Originally posted by Dom
should be -
code:
CD C:\Progra~1\Promis~1\Admini~1\
Admin~1.exe
should work 
edit - also try and use the long named version as well, so CD C:\Program Files\Promis.... etc etc
[Edited on 03-03-2008 by Dom]

Thanks Dom
Worked a treat 
[Edited on 03-03-2008 by Aaron]
|