Jump to content

TruHak

Members
  • Posts

    9
  • Joined

  • Last visited

TruHak's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for the input from all. Through more trial and error, I stumbled upon a syntax that is working and pass it along in case anyone cares. I have used the following for several years: RunWait(@ComSpec & '/c \\deploy1\install\licensed\sc\autodesk\Inv2011\Inv2011.lnk',@MyDocumentsDir,@SW_HIDE) I changed to: RunWait(@ComSpec & " /c" & '\\deploy1\install\licensed\sc\autodesk\Inv2011\Inv2011.lnk',"",@SW_HIDE) The key is the space between the first " and the /c". I take that space out and it does not kick the link off. I add the space and the it fires up every time.
  2. No, the path points to a remote installation folder.
  3. Correction on the path: RunWait(@ComSpec & '/c \\deploy1\install\licensed\sc\autodesk\Inv2011\Inv2011.lnk',@MyDocumentsDir,@SW_HIDE)
  4. I have scripts that I use to install new versions of software each year and each year they seem to work with some minor path tweaks. However, this year I cannot get one command to fire off. The path is good because I can execute it from START>RUN, but under RunWait, ProcessWait, or ProcessWaitClose the executable won't execute. Here is the command line... RunWait(@ComSpec & '/c \\deploy1\install\licensed\sc\autodesk\Inv2011\Inv2011',@MyDocumentsDir,@SW_HIDE) Suggestions?
  5. Thank-you PsaltyDS. I am working again!
  6. Well, the FileMove didn't work either. Here is what I entered: FileMove("%UserProfile%\Application Data\Autodesk\MEP 2011\enu\Support\MEP.mnr", "%UserProfile%\Application Data\Autodesk\MEP 2011\enu\Support\MEP_mnr.original") I must be missing something but it all seems syntactically (is that a word)correct...
  7. If you want to use FileMove for a rename, which the Help says to do, do you have to give the full path for the destination if it is the same or just give the new file name?
  8. Yes, I've manually done the move and rename. Haven't tried the FileMove. I'll read about it...
  9. I include the following line of syntax in my script but it never happens. The same worked last year under XP. I'm running Version 1.79 on a Win7 platform. The line is as follows: RunWait(@ComSpec & ' /c move /Y "%UserProfile%\Application Data\Autodesk\MEP 2011\enu\Support\MEP.mnr" "MEP_mnr.original"',@MyDocumentsDir,@SW_HIDE) I've tried using RENAME with the same result. Any help?
×
×
  • Create New...