Jump to content

@UserName Syntax within a Dos directory Name


Syekick
 Share

Recommended Posts

I'm trying to duplicate the dos command

cipher /a /e /q /s:"C:\Documents and Settings\%username%\my documents"

In AutoIt, I've tried many variations but find (so far) that the following line is the only one that does nor give syntax errors when checking the file. But of course, it does not work.

Run("cipher.exe /a /e /q /s:c:\C:\Documents and Settings\" & @UserName & "my documents")

Toss me a bone here :D

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...