Jump to content
Macro Express Forums

Cory

Members
  • Posts

    4,207
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by Cory

  1. Ha ha. Our messages passed in cyberspace!
  2. Dang. I thought one could rename a folder if it was on the same volume but it complains that I can not rename the folder if it is on a different folder or disk. <DOFILE:03:NN:\\ip1\ipdata\clients\%T4%\>\\ip1\ipdata\archive\clients\%T4%\> I guess it's back to copy and delete. It's no big deal but it just seems kinda stupid to have to do it this way.
  3. I tried copy then del and that works. But you're a genious on the other suggestion! Originally the source was on a different volume but last weekend I swapped some of the drives around and now they are on the same. Rename would be the proper way, it just escaped me! Thanks!
  4. I'll give that a try. I still think I must have somethign wrong. Can you just move a whole folder w/o wildcards?
  5. When I use ME to move an entire folder over the network it gets to the end and bombs out complaining that it can't find a file. When I look in that folder it has already moved all the files. What am I doing wrong? <DOFILE:07:YY:\\ip1\ipdata\clients\%T4%\*.*>\\ip1\ipdata\archive\clients\%T4%\> Also how do i simply move a folder?
  6. Thanks, I'll check into that.
  7. I have edited macro files while being used on other machines with success before but today I saw some strange stuff which made me wonder. Is it OK to edit one macro while a different user on a different machine executes a different macro?
  8. Really? That's interesting. But luckily I insist all my clients run NTFS so I won't have this problem. Thanks for the heads up though.
  9. As it turns out in this case I can make the new file a fixed name but I can think of other places where I might need this. Also in this case I can test to see if the folder is empty and choose not to proceed until it is. But I really like yuor counting idea. My idea was a repeat with folder with a time stamp test. Anything with a new name gets processed. This way I don't have to worry about the new file being in the middle as the folder would be processed alphabeticly. I was just hoping someone might already have a slick routine for this.
  10. I want to monitor a folder for a new file to appear, when it appears then do somethign with it. Problem is the file name will vary. I tried to do a 'wait for file exist' with "*.*" for the name but that didn't work. Got any great ideas how I can do this? I was thinking I could do a repeat with folder ever 5 seconds with a test or maybe I could do a move with a wildcard to a new known name and use a wait for file exist. I just thought I would ask here first in case you would know.
  11. If you just do a normal scan you will not get teh reboot requirement. It's becasue it can't get exclusive access. So if you just scan and don't choose to fix or repair options you wont get it. You can force it to cut the hand;es and dismount it with a /x but I wouldn't reccomend it. It was simpler in Win98 becasue it was very sloppy in the way it hand;ed the disk. This is why they had so many file problems. NTFS is much more agressive and protective. As for all drives I don't think you could ever do that from the command prompt in 98. But I'm sure you could write a routine to determine what hard drives there are and scan them but it might just be easier to scan every drive letter down low and just let the nonexistant drive error out.
  12. No it will not. VAR save and RESTORE are for ME vars. Otherwise things like your system directory path would dissapear! So in my way of thinking this gives us two sets of variables and a way to portage around the Variable Save and Restore commands. This will be very cool for calling subroutines where we want to set everythign back as it was except the results of the one thing the subroutine did. Also it's just handy for variables that don't often change like user name, email address and other such things. But for the CRLF and TAB values it's very cool. Also it's nice to have vars like in programming where they actualy mean something. "%TAB% or %CRLF% is much more intuitive than %T95% and %T94%.
  13. Don't forget that in many ZIPs there are more than one cities. In my case of 92028 I could be in Fallbrook or Rainbow. So don't start at the fist return. If I were you I would create a CSV file of the ZIP codes and use the ASCII Process File command. This would avoid your problem with Excel, timing and everythign. Just write it so that if there is more than one return you prompt the user for the correct city. This would be super simple to write.
  14. I posted a while back on using CRLF and TAB and several people shared how to create these variables. Then Randall pointed out how he liked to save them as and environmental var (lets call it an EV) instead. I really didn’t see the big advantage but I do like the idea of using them as I could create several standard ones and not be limited to the TXX problem where I always have to step around them and keep them unique. Problem is they to evaporate per session. Well I figured out a killer solution! Well at least I’m happy with myself. The command in ME only writes to the user EV but if you write to the registry you can create system EV’s. Simply write anything to the key below and that’s it! The downside is that you may have to reboot. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\ Text Box Display: Test of Tab and CRLF from perm environmental <REM2:Set CR><ASCIIC:95:1:13><ASCIIC:96:1:10><TVAR2:95:01:%T95%%T96%><REM2:Set CR><REM2:Set TAB><ASCIIC:94:1:9><REM2:Set TAB><REGWSTR:95:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\CRLF><REGWSTR:94:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\TAB> <TBOX4:T:1:CenterCenter000278000200:000:Test of Tab and CRLF from perm environmental123%TAB%456%CRLF%789> Just thougth I would share, hope someon finds it of use.
  15. Irfanview website IrfanView is a very cool free program for doing basic manipulation of photographs. It's very powerfull, thin and fast but best of all the author wrote it so that almost everythign is keypad driven. It's not a photo editor like photoshop but it will do about everythign else besides put your exgirlfriends head on a dog. I've used it for years and it's very good. The reason I mention it here is because of it's speed, batch capabilities, and keyboard interface it's a perfect match for ME. However many of it's batch processing tools negate the need for ME. If you check it out just look at the keyboard shortcuts to all the commands and you will see what I mean. And if you need any advice on how to use it feel free to ask me. cory@bluepointdesign.com
  16. I'm getting to the point where I could benefit by calling some subroutines instead of rewriting them all the time and was hoping for some advice on how best to handle variables. Obviously var’s in the parent pass to the called macro but if I write a macro today to be a sub I can’t anticipate what the best var’ would be to use. I see the var save/restore and I think that is key but how should one use it? I can think of a couple of ways but I was hoping I could benefit from some old hands experience as to the best way. My thought was to do a save before and a restore after the call with a transition var save as an adapter but if the sub was returning a var the restore would overwrite it. I know there must be an easy way to do this so any help would be greatly appreciated. Thank you all!
  17. Your insistance that it does work made me look more closely at what I was doing and I now think I see a flaw. Tomorrow I'll try again. Thanks for th confidence boost.
  18. Ah, I see. I realized that possibly WAIT FOR READY might be failing because it didn't exist yet but I didn't think or pairing the two up. Good advice. But my question has more to do with the different operations and their limitations. I think one can reanme a file and in effect also move it to another folder and even have it create to folder structure but it appears that it only works if it's on the same volume. Take the same command and change columes and strange things happen. Also sometimes it appears you can use the move command and rename it but it gives odd results sometimes. I was hopng for some clue as to when I could just use rename or move and when I had to do Rename, create directory, move.
  19. I don't think it can be done in the multi choice menu. The only work around I can think of is to nest it into a "If Message" condition. If it times out the macro wouldn't prompt them for the multi choice box. IOW it would ask them "Do you want to choose an option?" and if they don't do anything have it time out and continue on without ever popping up the multiple choice menu. It adds an extra click, but would work.
  20. I had my macro creating a directory, moving a file then renaming which was a lot of extra work and variables. I tried a simple move test and found that it would create teh path if it didn't exist and rename the file and attempted to do it all in one step which worked in my simple test. But now I'm getting strange results with the real thing. Especially somethng to do with the character count truncating names and such. Is there a writeup someplace on the limitations with move, rename and the ilk? Seems it works sometimes but not always.
  21. Here's somethig interesting. First time I set the var to %T12% and later changed it to %T16% after the "TO:" it appeard as "%T16%|%T12%"! I don't know if this helps you any with the fix but I thought it odd and worth mentioning to you.
  22. That's terrific! And I don't even have to wait for an update. If I do the direct editor trick %T1% doesn't appear in the scripting editor which could mess me up later. Once the fix is in ME will the ones I've changed magically appear correctly or will I need to go back and fix them?
  23. In "Variable Set From File" there is an undocumented (in help) option to "Expand Filename", what does this do? I've searched the ME site, KB and this forum but found no hits.
  24. You're so right. I need to remember what it was originally intended as and how it does that very well. But it does taunt me with those possibilities. <g> BTW thanks for ME, it’s a great product. I apologize if I sound like an ingrate! I mean no offense. I myself have been thinking that at some point I just need to take a VB class. Also I have been making Access DBs and I’m finding the same thing there where you can almost realize your vision then find that you need a VBA script to make it do what you really want. Does anyone know any online courses for VB?
  25. I haven't tried the enviromental vars before. But don't you have to keep recreating them anyway?
×
×
  • Create New...