Jump to content
Sign in to follow this  

@UserName Syntax within a Dos directory Name

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

Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...