Guest Rhea Posted January 8, 2008 Posted January 8, 2008 I have Windows 2003 SBS and most users with WinXP Pro. I have tried this line of code in the login script but it doesn't copy the file. I have full rights to both directories. What is wrong with the code or do I need to add anything? I wouldn't have thought it was so difficult to get a file copied from the server to a user's c drive. Help please, this can't be that hard. copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program Files\Beaver Plastics\Order System\" I have also tried various adaptations to this basic line of code, to no avail. Thanks.
Guest Pegasus \(MVP\) Posted January 8, 2008 Posted January 8, 2008 Re: login script to copy file "Rhea" <Rhea@discussions.microsoft.com> wrote in message news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... >I have Windows 2003 SBS and most users with WinXP Pro. I have tried this >line > of code in the login script but it doesn't copy the file. I have full > rights > to both directories. What is wrong with the code or do I need to add > anything? I wouldn't have thought it was so difficult to get a file > copied > from the server to a user's c drive. Help please, this can't be that hard. > > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program Files\Beaver > Plastics\Order System\" > > I have also tried various adaptations to this basic line of code, to no > avail. Thanks. Try this instead: xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program Files\Beaver Plastics\Order System\" 1>c:\test.log 2>&1 If it still does not work, post the contents of the file c:\test.log.
Guest Rhea Posted January 8, 2008 Posted January 8, 2008 Re: login script to copy file It didn't work. The command window was open with a bunch of messages in it and I had to 'En d Now' to close it. Here is the test.log file: Overwrite C:\Program files\Beaver Plastics\Order System\NewBPApp.exe (Yes/No/All)? I have tried this line of code before with a /Y at the end and it still hasn't worked. "Pegasus (MVP)" wrote: > > "Rhea" <Rhea@discussions.microsoft.com> wrote in message > news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... > >I have Windows 2003 SBS and most users with WinXP Pro. I have tried this > >line > > of code in the login script but it doesn't copy the file. I have full > > rights > > to both directories. What is wrong with the code or do I need to add > > anything? I wouldn't have thought it was so difficult to get a file > > copied > > from the server to a user's c drive. Help please, this can't be that hard. > > > > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program Files\Beaver > > Plastics\Order System\" > > > > I have also tried various adaptations to this basic line of code, to no > > avail. Thanks. > > Try this instead: > > xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > Files\Beaver > Plastics\Order System\" 1>c:\test.log 2>&1 > > If it still does not work, post the contents of the file c:\test.log. > > >
Guest Rhea Posted January 8, 2008 Posted January 8, 2008 Re: login script to copy file I added the /Y to the end and it worked! I'm sure I have tried that exact code before to no avail but whatever, it works now. I do have some Win2000 and Win98 users - will that work for them too? Thanks. "Pegasus (MVP)" wrote: > > "Rhea" <Rhea@discussions.microsoft.com> wrote in message > news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... > >I have Windows 2003 SBS and most users with WinXP Pro. I have tried this > >line > > of code in the login script but it doesn't copy the file. I have full > > rights > > to both directories. What is wrong with the code or do I need to add > > anything? I wouldn't have thought it was so difficult to get a file > > copied > > from the server to a user's c drive. Help please, this can't be that hard. > > > > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program Files\Beaver > > Plastics\Order System\" > > > > I have also tried various adaptations to this basic line of code, to no > > avail. Thanks. > > Try this instead: > > xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > Files\Beaver > Plastics\Order System\" 1>c:\test.log 2>&1 > > If it still does not work, post the contents of the file c:\test.log. > > >
Guest Pegasus \(MVP\) Posted January 8, 2008 Posted January 8, 2008 Re: login script to copy file Yes, it will. When unsure about the various switches, open a Command Prompt and type xcopy /? "Rhea" <Rhea@discussions.microsoft.com> wrote in message news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... >I added the /Y to the end and it worked! I'm sure I have tried that exact > code before to no avail but whatever, it works now. I do have some > Win2000 > and Win98 users - will that work for them too? Thanks. > > "Pegasus (MVP)" wrote: > >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... >> >I have Windows 2003 SBS and most users with WinXP Pro. I have tried this >> >line >> > of code in the login script but it doesn't copy the file. I have full >> > rights >> > to both directories. What is wrong with the code or do I need to add >> > anything? I wouldn't have thought it was so difficult to get a file >> > copied >> > from the server to a user's c drive. Help please, this can't be that >> > hard. >> > >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> > Files\Beaver >> > Plastics\Order System\" >> > >> > I have also tried various adaptations to this basic line of code, to no >> > avail. Thanks. >> >> Try this instead: >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> Files\Beaver >> Plastics\Order System\" 1>c:\test.log 2>&1 >> >> If it still does not work, post the contents of the file c:\test.log. >> >> >>
Guest Rhea Posted January 8, 2008 Posted January 8, 2008 Re: login script to copy file It works for Win2000 but not for Win98. xcopy.exe is on the Win98 computers but not in a windows directory. Should it work anyway? I will try it from a command prompt tomorrow. "Pegasus (MVP)" wrote: > Yes, it will. When unsure about the various switches, open > a Command Prompt and type > > xcopy /? > > > "Rhea" <Rhea@discussions.microsoft.com> wrote in message > news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... > >I added the /Y to the end and it worked! I'm sure I have tried that exact > > code before to no avail but whatever, it works now. I do have some > > Win2000 > > and Win98 users - will that work for them too? Thanks. > > > > "Pegasus (MVP)" wrote: > > > >> > >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... > >> >I have Windows 2003 SBS and most users with WinXP Pro. I have tried this > >> >line > >> > of code in the login script but it doesn't copy the file. I have full > >> > rights > >> > to both directories. What is wrong with the code or do I need to add > >> > anything? I wouldn't have thought it was so difficult to get a file > >> > copied > >> > from the server to a user's c drive. Help please, this can't be that > >> > hard. > >> > > >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > >> > Files\Beaver > >> > Plastics\Order System\" > >> > > >> > I have also tried various adaptations to this basic line of code, to no > >> > avail. Thanks. > >> > >> Try this instead: > >> > >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > >> Files\Beaver > >> Plastics\Order System\" 1>c:\test.log 2>&1 > >> > >> If it still does not work, post the contents of the file c:\test.log. > >> > >> > >> > > >
Guest Pegasus \(MVP\) Posted January 9, 2008 Posted January 9, 2008 Re: login script to copy file It does not matter where xcopy.exe resides as long as its location is included in the %path%. "Rhea" <Rhea@discussions.microsoft.com> wrote in message news:1DB72D0C-00CE-444C-AE81-E03C4E80DBF3@microsoft.com... > It works for Win2000 but not for Win98. xcopy.exe is on the Win98 > computers > but not in a windows directory. Should it work anyway? I will try it > from a > command prompt tomorrow. > > "Pegasus (MVP)" wrote: > >> Yes, it will. When unsure about the various switches, open >> a Command Prompt and type >> >> xcopy /? >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... >> >I added the /Y to the end and it worked! I'm sure I have tried that >> >exact >> > code before to no avail but whatever, it works now. I do have some >> > Win2000 >> > and Win98 users - will that work for them too? Thanks. >> > >> > "Pegasus (MVP)" wrote: >> > >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... >> >> >I have Windows 2003 SBS and most users with WinXP Pro. I have tried >> >> >this >> >> >line >> >> > of code in the login script but it doesn't copy the file. I have >> >> > full >> >> > rights >> >> > to both directories. What is wrong with the code or do I need to >> >> > add >> >> > anything? I wouldn't have thought it was so difficult to get a file >> >> > copied >> >> > from the server to a user's c drive. Help please, this can't be that >> >> > hard. >> >> > >> >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> >> > Files\Beaver >> >> > Plastics\Order System\" >> >> > >> >> > I have also tried various adaptations to this basic line of code, to >> >> > no >> >> > avail. Thanks. >> >> >> >> Try this instead: >> >> >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> >> Files\Beaver >> >> Plastics\Order System\" 1>c:\test.log 2>&1 >> >> >> >> If it still does not work, post the contents of the file c:\test.log. >> >> >> >> >> >> >> >> >>
Guest Rhea Posted January 9, 2008 Posted January 9, 2008 Re: login script to copy file I'm sorry but I don't understand what you mean included in the path. The line of code works as is for WinXP and Win2000. In Win98 xcopy is located in a different directory than the other two versions of windows. What must I include for Win98 to know where xcopy is? "Pegasus (MVP)" wrote: > It does not matter where xcopy.exe resides as long as its > location is included in the %path%. > > > "Rhea" <Rhea@discussions.microsoft.com> wrote in message > news:1DB72D0C-00CE-444C-AE81-E03C4E80DBF3@microsoft.com... > > It works for Win2000 but not for Win98. xcopy.exe is on the Win98 > > computers > > but not in a windows directory. Should it work anyway? I will try it > > from a > > command prompt tomorrow. > > > > "Pegasus (MVP)" wrote: > > > >> Yes, it will. When unsure about the various switches, open > >> a Command Prompt and type > >> > >> xcopy /? > >> > >> > >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... > >> >I added the /Y to the end and it worked! I'm sure I have tried that > >> >exact > >> > code before to no avail but whatever, it works now. I do have some > >> > Win2000 > >> > and Win98 users - will that work for them too? Thanks. > >> > > >> > "Pegasus (MVP)" wrote: > >> > > >> >> > >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... > >> >> >I have Windows 2003 SBS and most users with WinXP Pro. I have tried > >> >> >this > >> >> >line > >> >> > of code in the login script but it doesn't copy the file. I have > >> >> > full > >> >> > rights > >> >> > to both directories. What is wrong with the code or do I need to > >> >> > add > >> >> > anything? I wouldn't have thought it was so difficult to get a file > >> >> > copied > >> >> > from the server to a user's c drive. Help please, this can't be that > >> >> > hard. > >> >> > > >> >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > >> >> > Files\Beaver > >> >> > Plastics\Order System\" > >> >> > > >> >> > I have also tried various adaptations to this basic line of code, to > >> >> > no > >> >> > avail. Thanks. > >> >> > >> >> Try this instead: > >> >> > >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > >> >> Files\Beaver > >> >> Plastics\Order System\" 1>c:\test.log 2>&1 > >> >> > >> >> If it still does not work, post the contents of the file c:\test.log. > >> >> > >> >> > >> >> > >> > >> > >> > > >
Guest Harry Bates Posted January 9, 2008 Posted January 9, 2008 Re: login script to copy file Put a copy of xcopy out on the server and try calling it from there. It's been a while since I have worked with 9X, but I do believe it is under a different directory. Try putting a copy of xcopy out on the server then make the call like this: "\\server\share\xcopy.exe" /necessaryswitches&paths..... If you did want to see what was in %PATH% open a cmd prompt (or dos prompt on 9X) and type ECHO %PATH% then hit enter. "Rhea" <Rhea@discussions.microsoft.com> wrote in message news:09C88519-1C6A-4180-ADAA-55ABE7D624AD@microsoft.com... > I'm sorry but I don't understand what you mean included in the path. The > line of code works as is for WinXP and Win2000. In Win98 xcopy is located > in > a different directory than the other two versions of windows. What must I > include for Win98 to know where xcopy is? > > "Pegasus (MVP)" wrote: > >> It does not matter where xcopy.exe resides as long as its >> location is included in the %path%. >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> news:1DB72D0C-00CE-444C-AE81-E03C4E80DBF3@microsoft.com... >> > It works for Win2000 but not for Win98. xcopy.exe is on the Win98 >> > computers >> > but not in a windows directory. Should it work anyway? I will try it >> > from a >> > command prompt tomorrow. >> > >> > "Pegasus (MVP)" wrote: >> > >> >> Yes, it will. When unsure about the various switches, open >> >> a Command Prompt and type >> >> >> >> xcopy /? >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... >> >> >I added the /Y to the end and it worked! I'm sure I have tried that >> >> >exact >> >> > code before to no avail but whatever, it works now. I do have some >> >> > Win2000 >> >> > and Win98 users - will that work for them too? Thanks. >> >> > >> >> > "Pegasus (MVP)" wrote: >> >> > >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... >> >> >> >I have Windows 2003 SBS and most users with WinXP Pro. I have >> >> >> >tried >> >> >> >this >> >> >> >line >> >> >> > of code in the login script but it doesn't copy the file. I have >> >> >> > full >> >> >> > rights >> >> >> > to both directories. What is wrong with the code or do I need to >> >> >> > add >> >> >> > anything? I wouldn't have thought it was so difficult to get a >> >> >> > file >> >> >> > copied >> >> >> > from the server to a user's c drive. Help please, this can't be >> >> >> > that >> >> >> > hard. >> >> >> > >> >> >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> >> >> > Files\Beaver >> >> >> > Plastics\Order System\" >> >> >> > >> >> >> > I have also tried various adaptations to this basic line of code, >> >> >> > to >> >> >> > no >> >> >> > avail. Thanks. >> >> >> >> >> >> Try this instead: >> >> >> >> >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> >> >> Files\Beaver >> >> >> Plastics\Order System\" 1>c:\test.log 2>&1 >> >> >> >> >> >> If it still does not work, post the contents of the file >> >> >> c:\test.log. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
Guest Pegasus \(MVP\) Posted January 9, 2008 Posted January 9, 2008 Re: login script to copy file Developing an awareness of how Windows executes commands may help. Consider what happens when you type a command such as "xcopy" at the Command Prompt. Windows will do this: 1. It checks if xcopy is an internal command such as "copy" or "del". 2. It checks in the current folder, in this order, if any of these files exist: xcopy.com, xcopy.exe, xcopy.bat, xcopy.cmd (and perhaps some others). 3. It performs the same check in the first folder listed in the %path%. 4. It performs the same check in the remaining folders listed in the %path%. 5. If all of the above checks fail then it says "'xcopy' is not recognized as an internal or external command, operable program or batch file." This strategy applies to DOS and to all versions of Windows. In other words, it does not matter in the least where xcopy.exe resides, as long as it is found in a folder listed in the %path%. You should now find out this: - Where is xcopy.exe on your hard disk? - Is this folder listed in the %path%? "Rhea" <Rhea@discussions.microsoft.com> wrote in message news:09C88519-1C6A-4180-ADAA-55ABE7D624AD@microsoft.com... > I'm sorry but I don't understand what you mean included in the path. The > line of code works as is for WinXP and Win2000. In Win98 xcopy is located > in > a different directory than the other two versions of windows. What must I > include for Win98 to know where xcopy is? > > "Pegasus (MVP)" wrote: > >> It does not matter where xcopy.exe resides as long as its >> location is included in the %path%. >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> news:1DB72D0C-00CE-444C-AE81-E03C4E80DBF3@microsoft.com... >> > It works for Win2000 but not for Win98. xcopy.exe is on the Win98 >> > computers >> > but not in a windows directory. Should it work anyway? I will try it >> > from a >> > command prompt tomorrow. >> > >> > "Pegasus (MVP)" wrote: >> > >> >> Yes, it will. When unsure about the various switches, open >> >> a Command Prompt and type >> >> >> >> xcopy /? >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... >> >> >I added the /Y to the end and it worked! I'm sure I have tried that >> >> >exact >> >> > code before to no avail but whatever, it works now. I do have some >> >> > Win2000 >> >> > and Win98 users - will that work for them too? Thanks. >> >> > >> >> > "Pegasus (MVP)" wrote: >> >> > >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... >> >> >> >I have Windows 2003 SBS and most users with WinXP Pro. I have >> >> >> >tried >> >> >> >this >> >> >> >line >> >> >> > of code in the login script but it doesn't copy the file. I have >> >> >> > full >> >> >> > rights >> >> >> > to both directories. What is wrong with the code or do I need to >> >> >> > add >> >> >> > anything? I wouldn't have thought it was so difficult to get a >> >> >> > file >> >> >> > copied >> >> >> > from the server to a user's c drive. Help please, this can't be >> >> >> > that >> >> >> > hard. >> >> >> > >> >> >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> >> >> > Files\Beaver >> >> >> > Plastics\Order System\" >> >> >> > >> >> >> > I have also tried various adaptations to this basic line of code, >> >> >> > to >> >> >> > no >> >> >> > avail. Thanks. >> >> >> >> >> >> Try this instead: >> >> >> >> >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> >> >> Files\Beaver >> >> >> Plastics\Order System\" 1>c:\test.log 2>&1 >> >> >> >> >> >> If it still does not work, post the contents of the file >> >> >> c:\test.log. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
Guest Rhea Posted January 10, 2008 Posted January 10, 2008 Re: login script to copy file So if my path is "c:\Program Files\Beaver Plastics\Order System\" and I understand correctly - windows checks first on the root of c:, then in Program files, then in Beaver Plastics, then in Order System for a version of xcopy. Is that correct? If so, I don't get it because I don't have any version of xcopy in any of those directories. It is in c:\windows\System32\. It is also not in the path on the server - \\bp-fs1\Shared\OrderSystem. So if I put a copy of xcopy.exe in any one of the directories listed in my path on the users computer will it work in Win98? "Pegasus (MVP)" wrote: > Developing an awareness of how Windows executes commands > may help. Consider what happens when you type a command such > as "xcopy" at the Command Prompt. Windows will do this: > 1. It checks if xcopy is an internal command such as "copy" or "del". > 2. It checks in the current folder, in this order, if any of these > files exist: xcopy.com, xcopy.exe, xcopy.bat, xcopy.cmd > (and perhaps some others). > 3. It performs the same check in the first folder listed in the %path%. > 4. It performs the same check in the remaining folders listed > in the %path%. > 5. If all of the above checks fail then it says > "'xcopy' is not recognized as an internal or external command, > operable program or batch file." > > This strategy applies to DOS and to all versions of Windows. > In other words, it does not matter in the least where xcopy.exe > resides, as long as it is found in a folder listed in the %path%. > > You should now find out this: > - Where is xcopy.exe on your hard disk? > - Is this folder listed in the %path%? > > > "Rhea" <Rhea@discussions.microsoft.com> wrote in message > news:09C88519-1C6A-4180-ADAA-55ABE7D624AD@microsoft.com... > > I'm sorry but I don't understand what you mean included in the path. The > > line of code works as is for WinXP and Win2000. In Win98 xcopy is located > > in > > a different directory than the other two versions of windows. What must I > > include for Win98 to know where xcopy is? > > > > "Pegasus (MVP)" wrote: > > > >> It does not matter where xcopy.exe resides as long as its > >> location is included in the %path%. > >> > >> > >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> news:1DB72D0C-00CE-444C-AE81-E03C4E80DBF3@microsoft.com... > >> > It works for Win2000 but not for Win98. xcopy.exe is on the Win98 > >> > computers > >> > but not in a windows directory. Should it work anyway? I will try it > >> > from a > >> > command prompt tomorrow. > >> > > >> > "Pegasus (MVP)" wrote: > >> > > >> >> Yes, it will. When unsure about the various switches, open > >> >> a Command Prompt and type > >> >> > >> >> xcopy /? > >> >> > >> >> > >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> >> news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... > >> >> >I added the /Y to the end and it worked! I'm sure I have tried that > >> >> >exact > >> >> > code before to no avail but whatever, it works now. I do have some > >> >> > Win2000 > >> >> > and Win98 users - will that work for them too? Thanks. > >> >> > > >> >> > "Pegasus (MVP)" wrote: > >> >> > > >> >> >> > >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> >> >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... > >> >> >> >I have Windows 2003 SBS and most users with WinXP Pro. I have > >> >> >> >tried > >> >> >> >this > >> >> >> >line > >> >> >> > of code in the login script but it doesn't copy the file. I have > >> >> >> > full > >> >> >> > rights > >> >> >> > to both directories. What is wrong with the code or do I need to > >> >> >> > add > >> >> >> > anything? I wouldn't have thought it was so difficult to get a > >> >> >> > file > >> >> >> > copied > >> >> >> > from the server to a user's c drive. Help please, this can't be > >> >> >> > that > >> >> >> > hard. > >> >> >> > > >> >> >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > >> >> >> > Files\Beaver > >> >> >> > Plastics\Order System\" > >> >> >> > > >> >> >> > I have also tried various adaptations to this basic line of code, > >> >> >> > to > >> >> >> > no > >> >> >> > avail. Thanks. > >> >> >> > >> >> >> Try this instead: > >> >> >> > >> >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > >> >> >> Files\Beaver > >> >> >> Plastics\Order System\" 1>c:\test.log 2>&1 > >> >> >> > >> >> >> If it still does not work, post the contents of the file > >> >> >> c:\test.log. > >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >> >> > >> > >> > >> > > >
Guest Pegasus \(MVP\) Posted January 10, 2008 Posted January 10, 2008 Re: login script to copy file It is extremely unlikely that your path is "c:\Program Files\Beaver Plastics\Order System\" Open a Command Prompt and type echo %path% to see what it really is, then reword your question. "Rhea" <Rhea@discussions.microsoft.com> wrote in message news:0752FAE8-01FE-4DCD-9447-9E52269C8F13@microsoft.com... > So if my path is "c:\Program Files\Beaver Plastics\Order System\" and I > understand correctly - windows checks first on the root of c:, then in > Program files, then in Beaver Plastics, then in Order System for a version > of > xcopy. Is that correct? If so, I don't get it because I don't have any > version of xcopy in any of those directories. It is in > c:\windows\System32\. > It is also not in the path on the server - \\bp-fs1\Shared\OrderSystem. > So > if I put a copy of xcopy.exe in any one of the directories listed in my > path > on the users computer will it work in Win98? > > > "Pegasus (MVP)" wrote: > >> Developing an awareness of how Windows executes commands >> may help. Consider what happens when you type a command such >> as "xcopy" at the Command Prompt. Windows will do this: >> 1. It checks if xcopy is an internal command such as "copy" or "del". >> 2. It checks in the current folder, in this order, if any of these >> files exist: xcopy.com, xcopy.exe, xcopy.bat, xcopy.cmd >> (and perhaps some others). >> 3. It performs the same check in the first folder listed in the %path%. >> 4. It performs the same check in the remaining folders listed >> in the %path%. >> 5. If all of the above checks fail then it says >> "'xcopy' is not recognized as an internal or external command, >> operable program or batch file." >> >> This strategy applies to DOS and to all versions of Windows. >> In other words, it does not matter in the least where xcopy.exe >> resides, as long as it is found in a folder listed in the %path%. >> >> You should now find out this: >> - Where is xcopy.exe on your hard disk? >> - Is this folder listed in the %path%? >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> news:09C88519-1C6A-4180-ADAA-55ABE7D624AD@microsoft.com... >> > I'm sorry but I don't understand what you mean included in the path. >> > The >> > line of code works as is for WinXP and Win2000. In Win98 xcopy is >> > located >> > in >> > a different directory than the other two versions of windows. What >> > must I >> > include for Win98 to know where xcopy is? >> > >> > "Pegasus (MVP)" wrote: >> > >> >> It does not matter where xcopy.exe resides as long as its >> >> location is included in the %path%. >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> news:1DB72D0C-00CE-444C-AE81-E03C4E80DBF3@microsoft.com... >> >> > It works for Win2000 but not for Win98. xcopy.exe is on the Win98 >> >> > computers >> >> > but not in a windows directory. Should it work anyway? I will try >> >> > it >> >> > from a >> >> > command prompt tomorrow. >> >> > >> >> > "Pegasus (MVP)" wrote: >> >> > >> >> >> Yes, it will. When unsure about the various switches, open >> >> >> a Command Prompt and type >> >> >> >> >> >> xcopy /? >> >> >> >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> >> news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... >> >> >> >I added the /Y to the end and it worked! I'm sure I have tried >> >> >> >that >> >> >> >exact >> >> >> > code before to no avail but whatever, it works now. I do have >> >> >> > some >> >> >> > Win2000 >> >> >> > and Win98 users - will that work for them too? Thanks. >> >> >> > >> >> >> > "Pegasus (MVP)" wrote: >> >> >> > >> >> >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> >> >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... >> >> >> >> >I have Windows 2003 SBS and most users with WinXP Pro. I have >> >> >> >> >tried >> >> >> >> >this >> >> >> >> >line >> >> >> >> > of code in the login script but it doesn't copy the file. I >> >> >> >> > have >> >> >> >> > full >> >> >> >> > rights >> >> >> >> > to both directories. What is wrong with the code or do I need >> >> >> >> > to >> >> >> >> > add >> >> >> >> > anything? I wouldn't have thought it was so difficult to get >> >> >> >> > a >> >> >> >> > file >> >> >> >> > copied >> >> >> >> > from the server to a user's c drive. Help please, this can't >> >> >> >> > be >> >> >> >> > that >> >> >> >> > hard. >> >> >> >> > >> >> >> >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> >> >> >> > Files\Beaver >> >> >> >> > Plastics\Order System\" >> >> >> >> > >> >> >> >> > I have also tried various adaptations to this basic line of >> >> >> >> > code, >> >> >> >> > to >> >> >> >> > no >> >> >> >> > avail. Thanks. >> >> >> >> >> >> >> >> Try this instead: >> >> >> >> >> >> >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program >> >> >> >> Files\Beaver >> >> >> >> Plastics\Order System\" 1>c:\test.log 2>&1 >> >> >> >> >> >> >> >> If it still does not work, post the contents of the file >> >> >> >> c:\test.log. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
Guest Rhea Posted January 10, 2008 Posted January 10, 2008 Re: login script to copy file I see what you mean by "path" now! The path on the Win98 stations contains the path where xcopy.exe is but it isn't copying the file. Could it be that they need a newer version of xcopy? I am able to manually copy the file so it shouldn't be a rights issue. "Pegasus (MVP)" wrote: > It is extremely unlikely that your path is > "c:\Program Files\Beaver Plastics\Order System\" > > Open a Command Prompt and type > echo %path% > to see what it really is, then reword your question. > > > "Rhea" <Rhea@discussions.microsoft.com> wrote in message > news:0752FAE8-01FE-4DCD-9447-9E52269C8F13@microsoft.com... > > So if my path is "c:\Program Files\Beaver Plastics\Order System\" and I > > understand correctly - windows checks first on the root of c:, then in > > Program files, then in Beaver Plastics, then in Order System for a version > > of > > xcopy. Is that correct? If so, I don't get it because I don't have any > > version of xcopy in any of those directories. It is in > > c:\windows\System32\. > > It is also not in the path on the server - \\bp-fs1\Shared\OrderSystem. > > So > > if I put a copy of xcopy.exe in any one of the directories listed in my > > path > > on the users computer will it work in Win98? > > > > > > "Pegasus (MVP)" wrote: > > > >> Developing an awareness of how Windows executes commands > >> may help. Consider what happens when you type a command such > >> as "xcopy" at the Command Prompt. Windows will do this: > >> 1. It checks if xcopy is an internal command such as "copy" or "del". > >> 2. It checks in the current folder, in this order, if any of these > >> files exist: xcopy.com, xcopy.exe, xcopy.bat, xcopy.cmd > >> (and perhaps some others). > >> 3. It performs the same check in the first folder listed in the %path%. > >> 4. It performs the same check in the remaining folders listed > >> in the %path%. > >> 5. If all of the above checks fail then it says > >> "'xcopy' is not recognized as an internal or external command, > >> operable program or batch file." > >> > >> This strategy applies to DOS and to all versions of Windows. > >> In other words, it does not matter in the least where xcopy.exe > >> resides, as long as it is found in a folder listed in the %path%. > >> > >> You should now find out this: > >> - Where is xcopy.exe on your hard disk? > >> - Is this folder listed in the %path%? > >> > >> > >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> news:09C88519-1C6A-4180-ADAA-55ABE7D624AD@microsoft.com... > >> > I'm sorry but I don't understand what you mean included in the path. > >> > The > >> > line of code works as is for WinXP and Win2000. In Win98 xcopy is > >> > located > >> > in > >> > a different directory than the other two versions of windows. What > >> > must I > >> > include for Win98 to know where xcopy is? > >> > > >> > "Pegasus (MVP)" wrote: > >> > > >> >> It does not matter where xcopy.exe resides as long as its > >> >> location is included in the %path%. > >> >> > >> >> > >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> >> news:1DB72D0C-00CE-444C-AE81-E03C4E80DBF3@microsoft.com... > >> >> > It works for Win2000 but not for Win98. xcopy.exe is on the Win98 > >> >> > computers > >> >> > but not in a windows directory. Should it work anyway? I will try > >> >> > it > >> >> > from a > >> >> > command prompt tomorrow. > >> >> > > >> >> > "Pegasus (MVP)" wrote: > >> >> > > >> >> >> Yes, it will. When unsure about the various switches, open > >> >> >> a Command Prompt and type > >> >> >> > >> >> >> xcopy /? > >> >> >> > >> >> >> > >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> >> >> news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... > >> >> >> >I added the /Y to the end and it worked! I'm sure I have tried > >> >> >> >that > >> >> >> >exact > >> >> >> > code before to no avail but whatever, it works now. I do have > >> >> >> > some > >> >> >> > Win2000 > >> >> >> > and Win98 users - will that work for them too? Thanks. > >> >> >> > > >> >> >> > "Pegasus (MVP)" wrote: > >> >> >> > > >> >> >> >> > >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message > >> >> >> >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... > >> >> >> >> >I have Windows 2003 SBS and most users with WinXP Pro. I have > >> >> >> >> >tried > >> >> >> >> >this > >> >> >> >> >line > >> >> >> >> > of code in the login script but it doesn't copy the file. I > >> >> >> >> > have > >> >> >> >> > full > >> >> >> >> > rights > >> >> >> >> > to both directories. What is wrong with the code or do I need > >> >> >> >> > to > >> >> >> >> > add > >> >> >> >> > anything? I wouldn't have thought it was so difficult to get > >> >> >> >> > a > >> >> >> >> > file > >> >> >> >> > copied > >> >> >> >> > from the server to a user's c drive. Help please, this can't > >> >> >> >> > be > >> >> >> >> > that > >> >> >> >> > hard. > >> >> >> >> > > >> >> >> >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > >> >> >> >> > Files\Beaver > >> >> >> >> > Plastics\Order System\" > >> >> >> >> > > >> >> >> >> > I have also tried various adaptations to this basic line of > >> >> >> >> > code, > >> >> >> >> > to > >> >> >> >> > no > >> >> >> >> > avail. Thanks. > >> >> >> >> > >> >> >> >> Try this instead: > >> >> >> >> > >> >> >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" "c:\Program > >> >> >> >> Files\Beaver > >> >> >> >> Plastics\Order System\" 1>c:\test.log 2>&1 > >> >> >> >> > >> >> >> >> If it still does not work, post the contents of the file > >> >> >> >> c:\test.log. > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >> >> > >> > >> > >> > > >
Guest Pegasus \(MVP\) Posted January 10, 2008 Posted January 10, 2008 Re: login script to copy file Your statement "it isn't copying the file" is very vague. Type the "xcopy" command from the Command Prompt, then report here both the exact command you use and the message(s) you see. "Rhea" <Rhea@discussions.microsoft.com> wrote in message news:51593053-C3EB-47F5-9521-0BB7A7DC3644@microsoft.com... >I see what you mean by "path" now! The path on the Win98 stations contains > the path where xcopy.exe is but it isn't copying the file. Could it be > that > they need a newer version of xcopy? I am able to manually copy the file > so > it shouldn't be a rights issue. > > "Pegasus (MVP)" wrote: > >> It is extremely unlikely that your path is >> "c:\Program Files\Beaver Plastics\Order System\" >> >> Open a Command Prompt and type >> echo %path% >> to see what it really is, then reword your question. >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> news:0752FAE8-01FE-4DCD-9447-9E52269C8F13@microsoft.com... >> > So if my path is "c:\Program Files\Beaver Plastics\Order System\" and I >> > understand correctly - windows checks first on the root of c:, then in >> > Program files, then in Beaver Plastics, then in Order System for a >> > version >> > of >> > xcopy. Is that correct? If so, I don't get it because I don't have any >> > version of xcopy in any of those directories. It is in >> > c:\windows\System32\. >> > It is also not in the path on the server - \\bp-fs1\Shared\OrderSystem. >> > So >> > if I put a copy of xcopy.exe in any one of the directories listed in my >> > path >> > on the users computer will it work in Win98? >> > >> > >> > "Pegasus (MVP)" wrote: >> > >> >> Developing an awareness of how Windows executes commands >> >> may help. Consider what happens when you type a command such >> >> as "xcopy" at the Command Prompt. Windows will do this: >> >> 1. It checks if xcopy is an internal command such as "copy" or "del". >> >> 2. It checks in the current folder, in this order, if any of these >> >> files exist: xcopy.com, xcopy.exe, xcopy.bat, xcopy.cmd >> >> (and perhaps some others). >> >> 3. It performs the same check in the first folder listed in the >> >> %path%. >> >> 4. It performs the same check in the remaining folders listed >> >> in the %path%. >> >> 5. If all of the above checks fail then it says >> >> "'xcopy' is not recognized as an internal or external command, >> >> operable program or batch file." >> >> >> >> This strategy applies to DOS and to all versions of Windows. >> >> In other words, it does not matter in the least where xcopy.exe >> >> resides, as long as it is found in a folder listed in the %path%. >> >> >> >> You should now find out this: >> >> - Where is xcopy.exe on your hard disk? >> >> - Is this folder listed in the %path%? >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> news:09C88519-1C6A-4180-ADAA-55ABE7D624AD@microsoft.com... >> >> > I'm sorry but I don't understand what you mean included in the path. >> >> > The >> >> > line of code works as is for WinXP and Win2000. In Win98 xcopy is >> >> > located >> >> > in >> >> > a different directory than the other two versions of windows. What >> >> > must I >> >> > include for Win98 to know where xcopy is? >> >> > >> >> > "Pegasus (MVP)" wrote: >> >> > >> >> >> It does not matter where xcopy.exe resides as long as its >> >> >> location is included in the %path%. >> >> >> >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> >> news:1DB72D0C-00CE-444C-AE81-E03C4E80DBF3@microsoft.com... >> >> >> > It works for Win2000 but not for Win98. xcopy.exe is on the >> >> >> > Win98 >> >> >> > computers >> >> >> > but not in a windows directory. Should it work anyway? I will >> >> >> > try >> >> >> > it >> >> >> > from a >> >> >> > command prompt tomorrow. >> >> >> > >> >> >> > "Pegasus (MVP)" wrote: >> >> >> > >> >> >> >> Yes, it will. When unsure about the various switches, open >> >> >> >> a Command Prompt and type >> >> >> >> >> >> >> >> xcopy /? >> >> >> >> >> >> >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> >> >> news:8B4FD40A-BE35-40CE-8B38-DBE06138D535@microsoft.com... >> >> >> >> >I added the /Y to the end and it worked! I'm sure I have tried >> >> >> >> >that >> >> >> >> >exact >> >> >> >> > code before to no avail but whatever, it works now. I do have >> >> >> >> > some >> >> >> >> > Win2000 >> >> >> >> > and Win98 users - will that work for them too? Thanks. >> >> >> >> > >> >> >> >> > "Pegasus (MVP)" wrote: >> >> >> >> > >> >> >> >> >> >> >> >> >> >> "Rhea" <Rhea@discussions.microsoft.com> wrote in message >> >> >> >> >> news:915D273F-AD98-4ED1-B9AC-3DB91489F25E@microsoft.com... >> >> >> >> >> >I have Windows 2003 SBS and most users with WinXP Pro. I >> >> >> >> >> >have >> >> >> >> >> >tried >> >> >> >> >> >this >> >> >> >> >> >line >> >> >> >> >> > of code in the login script but it doesn't copy the file. >> >> >> >> >> > I >> >> >> >> >> > have >> >> >> >> >> > full >> >> >> >> >> > rights >> >> >> >> >> > to both directories. What is wrong with the code or do I >> >> >> >> >> > need >> >> >> >> >> > to >> >> >> >> >> > add >> >> >> >> >> > anything? I wouldn't have thought it was so difficult to >> >> >> >> >> > get >> >> >> >> >> > a >> >> >> >> >> > file >> >> >> >> >> > copied >> >> >> >> >> > from the server to a user's c drive. Help please, this >> >> >> >> >> > can't >> >> >> >> >> > be >> >> >> >> >> > that >> >> >> >> >> > hard. >> >> >> >> >> > >> >> >> >> >> > copy "servername\Shared\OrderSystem\NewBPApp.exe" >> >> >> >> >> > "c:\Program >> >> >> >> >> > Files\Beaver >> >> >> >> >> > Plastics\Order System\" >> >> >> >> >> > >> >> >> >> >> > I have also tried various adaptations to this basic line of >> >> >> >> >> > code, >> >> >> >> >> > to >> >> >> >> >> > no >> >> >> >> >> > avail. Thanks. >> >> >> >> >> >> >> >> >> >> Try this instead: >> >> >> >> >> >> >> >> >> >> xcopy "\\servername\Shared\OrderSystem\NewBPApp.exe" >> >> >> >> >> "c:\Program >> >> >> >> >> Files\Beaver >> >> >> >> >> Plastics\Order System\" 1>c:\test.log 2>&1 >> >> >> >> >> >> >> >> >> >> If it still does not work, post the contents of the file >> >> >> >> >> c:\test.log. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
Recommended Posts