|
|
|||||||
Hello all, I am trying to add to my login script a check to see if a file exist on the users desktop. If the file is not there, I need it to run a batch file. I assume this would be some sort of IF statement but I am unsure of how to reference the file I am looking for (RsiKron.ws) in the current users' desktop. Thanks Eric |
||||||||
|
|
|||||||
Eric, There is a great How To by Kent Dyer on common file and directory locations. http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=81615&an=0&page=2#81615 In order to check the existance of your desktop file you would want to do something like this. Code:
I haven't tested this code yet. |
||||||||
|
|
|||||||
Thanks. I'll take a look at the link. |
||||||||
|
|
|||||||
Here is an example for you. |
||||||||
|
|
|||||||
Hmmm... not sure about the SHELL line. Why the extra enviro space? Would it not need the /c switch? Also, he said he wanted to RUN a BATch file. |
||||||||
|
|
|||||||
Okay, updated. Yes, missed the /c The extra environment space may or may not be needed. Some DOS items are hogs and this can help overcome an out of environment space error. No harm, no foul by using it but my guess is that just about anything they're running with this batch file can be run just as well if not better using KiXtart coding instead. |
||||||||
|
|
|||||||
Thanks for all the help! It is working perfectly now. Eric |