i have a new issue. when i run the xcopy command, it doesn't put the file in the program files folder, it makes a new folder called program_files
any ideas?
I have a japplet program, and i need it to take a hashmap and write it to a file (plain text file works). I am using bufferedwriter and filewriter, but the japplet hangs when that line is executed. does anyone know why???
here is my code:
try
{
File outputFile = new...
I fear this script will never work. I have a script that pushes a file to a list of workstations. i ping the workstation before i copy in order to keep the script from crashing. however, if the ping time out takes too long or expires in transit, the script locks up. it doesn't crash, it just...
I GOT IT!!!!!!!!! and of course, it was because i am an idiot. the destination folder was program files. but xcopy needs it to be program_files because its command prompt. i will more than likely feel pretty dumb as soon as the high of success and completion wears off! Thanks to everyone...
sorry, i posted wheil you guys were posting. i am trying it without the mapped drives, and it's giving me a command prompt with "invalid number of parameters" i am trying to see if my xcopy has an extra space in it somewhere, but i do not see it. the code i am now using is this:
Call...
let me correct that. it wouldn't work for the folder the file was in, i just did an xcopy with the file in the root of the fileserver, and it worked! let me try the script w/o mapped drives.
you mean, just enter the xcopy command by hand into command prompt? it once told me unc was not supported, but now it tells me file not found for the file i using. but i double checked, and the file is there, so i am guessing that it goes back to unc not being supported.
sorry, i added the slash just to check to see if i needed it. originally i did not have it. i was just trying little things to see if it would work. according to the few books i have, it looks like my code is right (without the slash), but i can't figure out why it won't work.
The sourcedir is in a shared folder. It is available for all on the network. It shows up with the code you gave me (thanks btw - i can definately use that code somewhere else also).
Even though i am not using those drive letters, might i have to remove all of my other mapped drives first? (i...
i just gives me "device unavailable" when i do a getdrive on the mapped drive. no other error message.
Here is my code(written with the help of numerous people, including markdmac and tsuji, as well as you, phv:
On Error Resume Next
Wscript.Echo "Beginning Script "
' define ADSI status...
i actually discovered my problem. my draves are not mapping correctly.
WSHNetwork.MapNetworkDrive "Q:", sourceDir,True
i have tried putting "True" in quotes, i've added the admin password and username, and i even tried getting rid of the string variable and writing explicitly the drive that i...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.