Jump to content

Frontalabotomy

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Frontalabotomy

  1. I don't know if the previous help gave any insight, but I do have something to add if it didn't. The registry key you are deleting is for the local machines copy of the legal notice caption ONLY!!! NOTE: if you are on a domain this may not be comming from the local machine, and is set at the domain level. Just an FYI
  2. Run, <program and pathname>, <workingdirectory> Remember to use "\\" for each"\" you need in the paths. so your not
  3. Sorry, I have made another stupid move, as I am working outside my production script, and forgot that the %notesdata% variable isn't being setup prior to it's calling..... Now everything works great!!!! Please forgive! Have a great weekend. CW
  4. OK, I cannot get it to take the variable, nor a key send.... I can get it to work when I enumerate the path manually, but not with "" around the %notesdata%\\bookmark.nsf weird.... or am I doing something wrong.. here is my single line of code... RunWait, %comspec% /c attrib -r c:\\lotus\\notes\\data\\bookmark.nsf This one works, as I can physically see the change.. but.... this one willnot.... RunWait, %comspec% /c attrib -r "%notesdata%bookmark.nsf" or RunWait, %comspec% /c attrib -r "%notesdata%\\bookmark.nsf" or what an ID10T!! Sorry, forgot the notesdata... it's on a different script not running at this time, there fore cannot get the variable.... STUPID ME>>> SORRY FOR WASTING YOUR TIME, I will edit the code to get this variable and repost my retarded answer.... You are probably right on....... thanks again
  5. Nothing, nada the cmd window just opens and sits there.... any ideas.... CW
  6. Just need to know if it is possible to pass a variable to a comspec line. ie RunWait,%comspec% attrib -r %notesdata%bookmark.nsf I get ensure backslashes have been properly used, like the path is wrong.... and the error doesn't show the %NotesPath% The %comspec% shows up correctly in the error, but again no %notesData% path... I even try to open CMD.exe then send the keystrokes but none come onto the screen... is there something I have missed??? Thanks in advance... CW
  7. Gentlemen, I once again turn to the gurus of guru....... I am in bind, as I didn't realize an issue I created by placing a script to run from CD.... The file is readonly on the CD (i guess because you cant change it there....as it was not read only before burning it to cd...)and that attribute seems to be carrying over when the file is copied to the Program folder.... Arrrgh,, any ideas. Can %COMSPEC% help me with this or does the file copy command have attribute flags???? Thanks in advance.. CW
  8. Very nice, I also have found another avenue ;Reading Registry... RegRead,dataPath,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\\LOTUS\\NOTES,DataPath RegRead,Path,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\\LOTUS\\NOTES,Path Msgbox,0,Example, Datapath is %datapath%----- And your NotesPath is %path% exit My only need now would be to re-design the autoit script to send these variables... Wow, I am liking this more and more.... Thanks again for all your help...
  9. Nice, could you explain, Sorry, for the stupidity, just like to understand the syntax.. RunWait,%comspec% /c dir notes.exe /b /s > ~temp.txt, c:\\, hide Runwait, is obvious, %comspec%, ?? and the switch /C, are these together? and what is the dosvariable? comspec? (am I right, that comspec is a DOS variable).. I understand I think the rest... DIR Notes.exe /b /s (list the contents of and...) >(Redirect output to)... ~temp.txt, (in the directory of) C:\\, (you used 2 '\' because in reality you need only one but need to signify that it isn't a special character...), hide, you are going to hide the CMD window.. ( oooh is compsec the dosvariable to execute CMD?? FileReadLine,var,c:\\~temp.txt,1 (readline, and call that line var...) StringLen,len,var (Ahh, just read this one, your getting a numerical value for the # of char's in the variable, var...) IfEqual,len,0,Goto,error (Now this one makes sence.... But I will need to make an Error: section.... or just rename it to my error selections.... StringTrimRight,var,var,9 (since var is still a variable we can use it else where..) ;trim off the length of NOTES.EXE MsgBox,4096,I found it in,%var% just for relaying the information onto the screen, I will reuse the trimmed variable to enter into an ini file with the IniWrite command... Kewl I think I am comming along with this.... Sorry for the run through, just want to be able to understand what I am doing, as I am sure there will be many more of these..... and don't want to have to ask toooo many questions.... CW
  10. Yes, Yes, Yes, The "group" and I use that term loosely... has installed notes, where ever there was room, and I have plenty of places to look. obviously they wouldn't install on CDrom drives, but I am sure there is atleast c: and d: but the possibilities there are others is still out there. As we are dealing with a user group with Newbies through developers, so the door is wide open on this one. Larry, I used the scriptdir command, and it works real nice... just a note... so, how do I skin this one? I am thinking my last list of operations over and prolly need to preface all of it with a drive search, list then search.. and what if I find 2??? I am forcing the install to the C:partition. and trying to get the group to support repartitioning anything, with a single drive into a single partition. I even see the need to estimate diskspace... AHhhhhh!!! What is your professional opinion?? Thanks again... cw
  11. Gentlemen, Thank you for your previous help, I am looking to search for a specific file, Notes.exe, then use the containing folder to direct a setup executable, Correct me if I am wrong, or there is a better way, I first need to find the file, Set the containing folder to a variable, then use the variable to input, redirect, yadda yadda eh?? thanx again all!!
  12. That worked perfect, Thank you. Just for anyone reading this thread, you do not need to place the \\ after %A_ScriptDir%... so your script will look like: Run, %A_ScriptDir%setup.exe Real nice, peoplez CW
  13. Thank you Thank you Thank you.... I will let you gentlemen/ladies (if applicable) how it works... CW
  14. Hello All! I have a newbie question. I have written a few installs from network drives, and need to install this remotely from CD. id. having the users install it from CD. I use the Run, command to run a couple of kill programs, (I am installing Lotus Notes), which stop processes, and also run the application for configuration. What syntax is used to have the script return it's "home" drive (where it is being installed from and use that as a variable in the run command? Thanks in advance..... Oh, are there any books or online reference manuals which explain ALL of the possible commands used in Autoit?? I love this app!!! cwood@resolutionsconsulting.com
×
×
  • Create New...